4 static bool m_PersonalLightEnabledOnCurrentServer =
false;
5 static bool m_PersonalLightDisabledByDebug =
false;
6 static bool m_PersonalLightIsSwitchedOn =
true;
9 static void CreatePersonalLight()
11 if (!m_PersonalLight && ( !
GetGame().IsServer() || !
GetGame().IsMultiplayer() ))
39 override void OnGameplayDataHandlerSync()
41 super.OnGameplayDataHandlerSync();
43 UpdatePersonalLight();
44 UpdateHitDirectionValues();
49 static void SwitchPersonalLight(
bool state)
53 m_PersonalLightIsSwitchedOn = state;
54 UpdatePersonalLight();
59 static void UpdatePersonalLight()
63 CreatePersonalLight();
66 if ( !
GetCLIParam(
"disablePersonalLight", param) && !m_PersonalLightDisabledByDebug && m_PersonalLightIsSwitchedOn )
68 m_PersonalLight.SetEnabled(m_PersonalLightEnabledOnCurrentServer);
72 m_PersonalLight.SetEnabled(
false);
76 static void UpdateHitDirectionValues()