5 private static float m_DefaultAngle = 100;
8 void PistollightLight()
10 SetVisibleDuringDaylight(
true );
11 SetRadiusTo( m_DefaultRadius );
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 )
24 FadeRadiusTo( m_DefaultRadius * coef, time );
27 override void UpdateLightMode(
string slotName )
31 case "weaponFlashlight":
32 SetSpotLightAngle( m_DefaultAngle/2 );
33 SetRadiusTo( m_DefaultRadius * 1.8 );
37 SetSpotLightAngle( m_DefaultAngle );
38 SetRadiusTo( m_DefaultRadius );
PlayerSpawnPreset slotName
enum EGrenadeType m_DefaultBrightness
For backward compatibility.