DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
FlareLight.c
Go to the documentation of this file.
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
35class FlareLightRed extends FlareLight
36{
37
38 void FlareLightRed()
39 {
40 SetDiffuseColor( 1.0, 0.3, 0.3 );
41 SetAmbientColor( 1.0, 0.3, 0.3 );
42 }
44
46{
48 {
49 SetDiffuseColor( 0.3, 1.0, 0.3 );
50 SetAmbientColor( 0.3, 1.0, 0.3 );
51 }
52}
53
54class FlareLightBlue extends FlareLight
55{
56 void FlareLightBlue()
57 {
58 SetDiffuseColor( 0.3, 0.3, 1.0 );
59 SetAmbientColor( 0.3, 0.3, 1.0 );
60 }
61}
62
63class FlareLightContamination extends FlareLightRed
64{
66 {
67 SetLifetime( 20 );
68 }
69}
static float m_FlareRadius
Definition FlareLight.c:39
static float m_FlareBrightness
Definition FlareLight.c:40
class FlareLightGreen extends FlareLight FlareLightBlue()
Definition FlareLight.c:56
static string m_MemoryPoint
Definition FlareLight.c:41
void FlareLightGreen()
Definition FlareLight.c:57
void FlareLightGreen()
Definition FlareLight.c:47
void FlareLightContamination()
Definition FlareLight.c:65
void FlareLight()
Definition FlareLight.c:7