112 {
113
115 {
117 }
118
119 PlayerBase player;
122 if (
m_Strap && PlayerBase.CastTo(player,
m_Strap.GetHierarchyParent()) )
123 {
124 headgear = player.FindAttachmentBySlotName("Headgear");
125 glasses = player.FindAttachmentBySlotName("Eyewear");
126
128 {
129 if ( (headgear ==
m_Strap || glasses ==
m_Strap) && player.IsControlledPlayer() )
130 {
131 player.AddActiveNV(
NVTypes.NV_GOGGLES);
132 }
133 }
134 }
135 }
void RotateGoggles(bool state)
proto native CGame GetGame()