Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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 
27 class Roadblock_Light extends PointLightBase
28 {
29  protected float m_DefaultBrightness = 5.5;
30  protected float m_DefaultRadius = 20;
31 
32  void Roadblock_Light()
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 }
GetGame
proto native CGame GetGame()
PointLightBase
Definition: staticobj_roadblock_wood_small.c:27
StaticObj_Roadblock_Wood_Small
Definition: staticobj_roadblock_wood_small.c:1
EntranceLight
void EntranceLight()
Definition: entrancelight.c:5
m_DefaultRadius
protected float m_DefaultRadius
Definition: contaminatedarea_dynamic.c:14
m_DefaultBrightness
enum eAreaDecayStage m_DefaultBrightness
ScriptedLightBase
Definition: pointlightbase.c:1
House
Definition: crashbase.c:1
EntityAI
Definition: building.c:5