Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
flashlightlight.c
Go to the documentation of this file.
1 class FlashlightLight extends SpotLightBase
2 {
3  private static float m_DefaultBrightness = 4;
4  private static float m_DefaultRadius = 25;
5 
6  void FlashlightLight()
7  {
8  SetVisibleDuringDaylight( true );
9  SetRadiusTo( m_DefaultRadius );
10  SetSpotLightAngle( 110 );
11  SetCastShadow( true );
12  EnableSpecular( true );
13  SetBrightnessTo( m_DefaultBrightness );
14  SetFadeOutTime( 0.15 );
15  SetAmbientColor( 0.9, 0.85, 0.75 );
16  SetDiffuseColor( 0.9, 0.85, 0.75 );
17  }
18 
19  void SetIntensity( float coef, float time )
20  {
21  FadeBrightnessTo(m_DefaultBrightness * coef, time);
22  }
23 }
m_DefaultRadius
protected float m_DefaultRadius
Definition: contaminatedarea_dynamic.c:14
SpotLightBase
Definition: carlightbase.c:1
m_DefaultBrightness
enum eAreaDecayStage m_DefaultBrightness