5 private static float m_DefaultAngle = 100;
7 void UniversallightLight()
9 SetVisibleDuringDaylight(
true );
11 SetSpotLightAngle( m_DefaultAngle );
12 SetCastShadow(
true );
14 SetFadeOutTime( 0.15 );
15 SetAmbientColor( 0.95, 0.88, 0.8 );
16 SetDiffuseColor( 0.95, 0.88, 0.8 );
17 SetDisableShadowsWithinRadius( 1.2 );
20 void SetIntensity(
float coef,
float time )
26 override void UpdateLightMode(
string slotName )
30 case "weaponFlashlight":
31 SetSpotLightAngle( m_DefaultAngle/2 );
36 SetSpotLightAngle( m_DefaultAngle );