5 private static float m_DefaultAngle = 100;
8 void PistollightLight()
10 SetVisibleDuringDaylight(
true );
12 SetSpotLightAngle( m_DefaultAngle );
13 SetCastShadow(
true );
15 SetFadeOutTime( 0.05 );
16 SetAmbientColor( 0.92, 0.88, 0.82 );
17 SetDiffuseColor( 0.92, 0.88, 0.82 );
18 SetDisableShadowsWithinRadius( 1.2 );
21 void SetIntensity(
float coef,
float time )
27 override void UpdateLightMode(
string slotName )
31 case "weaponFlashlight":
32 SetSpotLightAngle( m_DefaultAngle/2 );
37 SetSpotLightAngle( m_DefaultAngle );