DayZ 1.24
Loading...
Searching...
No Matches
ChemlightLight.c
Go to the documentation of this file.
1class ChemlightLight extends PointLightBase
2{
3 private static float m_DefaultBrightness = 1.5;
4 private static float m_DefaultRadius = 7.5;
5
7 {
8 SetVisibleDuringDaylight(false);
9 SetRadiusTo(m_DefaultRadius);
10 SetBrightnessTo(m_DefaultBrightness);
11 FadeIn(1);
12 SetFadeOutTime(2);
13 SetFlareVisible(false);
14 }
15
16 void SetIntensity(float coef, float time)
17 {
18 FadeBrightnessTo(m_DefaultBrightness * coef, time);
19 FadeRadiusTo(m_DefaultRadius * coef, time);
20 }
21
23 {
24 SetAmbientColor(0.9, 0.9, 1.0);
25 SetDiffuseColor(0.9, 0.9, 1.0);
26 }
27
29 {
30 SetAmbientColor(1.0, 0.3, 0.2);
31 SetDiffuseColor(1.0, 0.3, 0.2);
32 }
33
35 {
36 SetAmbientColor(0.3, 1.0, 0.2);
37 SetDiffuseColor(0.3, 1.0, 0.2);
38 }
39
41 {
42 SetAmbientColor(0.3, 0.3, 1.0);
43 SetDiffuseColor(0.3, 0.3, 1.0);
44 }
45
47 {
48 SetAmbientColor(1.0, 1.0, 0.3);
49 SetDiffuseColor(1.0, 1.0, 0.3);
50 }
51}
float m_DefaultRadius
enum eAreaDecayStage m_DefaultBrightness
void ChemlightLight()
void SetIntensity(float coef, float time)
void SetColorToYellow()