Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
staticobj_roadblock_wood_small.c
Go to the documentation of this file.
2{
3 PointLightBase m_BlinkingLight;
4
5 override void EEInit()
6 {
7 super.EEInit();
8
9 if ( !GetGame().IsDedicatedServer() )
10 {
11 m_BlinkingLight = EntranceLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(Roadblock_Light, this, "Light"));
12 }
13 }
14
15 override void EEDelete(EntityAI parent)
16 {
17 super.EEDelete(parent);
18
19 if ( !GetGame().IsDedicatedServer() )
20 {
21 if ( m_BlinkingLight )
22 m_BlinkingLight.Destroy();
23 }
24 }
25};
26
27class Roadblock_Light extends PointLightBase
28{
29 protected float m_DefaultBrightness = 5.5;
30 protected float m_DefaultRadius = 20;
31
33 {
34 SetVisibleDuringDaylight(true);
35 SetRadiusTo(m_DefaultRadius);
36 SetBrightnessTo(m_DefaultBrightness);
37 FadeIn(1);
38 SetFadeOutTime(2);
39 SetFlareVisible(false);
40 SetCastShadow(false);
41 SetAmbientColor(0.9, 0.9, 0.7);
42 SetDiffuseColor(0.9, 0.9, 0.7);
43
44 SetBlinkingSpeed(1);
45 }
46}
float m_DefaultRadius
proto native CGame GetGame()
enum EGrenadeType m_DefaultBrightness
For backward compatibility.