Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
flarelight.c
Go to the documentation of this file.
1 class FlareLight extends PointLightBase
2 {
3  static float m_FlareRadius = 100;
4  static float m_FlareBrightness = 10.0;
5  static string m_MemoryPoint = "light";
6 
7  void FlareLight()
8  {
9  SetVisibleDuringDaylight( true );
10  SetRadiusTo( m_FlareRadius );
11  SetBrightnessTo( m_FlareBrightness );
12  FadeIn( 1 );
13  SetFadeOutTime( 0.2 );
14  SetDiffuseColor( 0.7, 0.7, 0.3 );
15  SetAmbientColor( 0.7, 0.7, 0.3 );
16  SetFlareVisible( false );
17  SetFlickerAmplitude( 0.9 );
18  SetFlickerSpeed( 0.3 );
19  SetDancingShadowsMovementSpeed( 0.5 );
20  SetDancingShadowsAmplitude( 0.15 );
21  //SetLifetime( 50 );
22  EnableLinear( true );
23  EnableHeatHaze( true );
24  SetHeatHazeRadius( 0.1 );
25  SetHeatHazePower( 0.02 );
26  #ifdef PLATFORM_WINDOWS
27  SetCastShadow( true );
28  #else
29  SetCastShadow( false );
30  #endif
31 
32  }
33 }
34 
35 class FlareLightRed extends FlareLight
36 {
37 
39  {
40  SetDiffuseColor( 1.0, 0.3, 0.3 );
41  SetAmbientColor( 1.0, 0.3, 0.3 );
42  }
43 }
44 
46 {
47  void FlareLightGreen()
48  {
49  SetDiffuseColor( 0.3, 1.0, 0.3 );
50  SetAmbientColor( 0.3, 1.0, 0.3 );
51  }
52 }
53 
54 class FlareLightBlue extends FlareLight
55 {
57  {
58  SetDiffuseColor( 0.3, 0.3, 1.0 );
59  SetAmbientColor( 0.3, 0.3, 1.0 );
60  }
61 }
62 
63 class FlareLightContamination extends FlareLightRed
64 {
65  void FlareLightContamination()
66  {
67  SetLifetime( 20 );
68  }
69 }
FlareLightGreen
void FlareLightGreen()
Definition: flarelight.c:2
FlareLight
Definition: flarelight.c:45
PointLightBase
Definition: staticobj_roadblock_wood_small.c:27
FlareLightRed
class FlareLight extends PointLightBase FlareLightRed()
Definition: flarelight.c:38
FlareLightBlue
class FlareLightGreen extends FlareLight FlareLightBlue()
Definition: flarelight.c:56
FlareLightRed
Definition: flarelight.c:63
FlareLight
void FlareLight()
Definition: flarelight.c:6