DayZ
1.24
Loading...
Searching...
No Matches
StaticObj_Roadblock_Wood_Small.c
Go to the documentation of this file.
1
class
StaticObj_Roadblock_Wood_Small
:
House
2
{
3
PointLightBase
m_BlinkingLight
;
4
5
override
void
EEInit
()
6
{
7
super
.EEInit();
8
9
if
(!
GetGame
().IsDedicatedServer())
10
m_BlinkingLight
= EntranceLight.Cast(
ScriptedLightBase
.CreateLightAtObjMemoryPoint(Roadblock_Light,
this
,
"Light"
));
11
}
12
13
override
void
EEDelete
(
EntityAI
parent)
14
{
15
super
.EEDelete(parent);
16
17
if
(!
GetGame
().IsDedicatedServer())
18
{
19
if
(
m_BlinkingLight
)
20
m_BlinkingLight
.Destroy();
21
}
22
}
23
};
24
25
class
Roadblock_Light
extends
PointLightBase
26
{
27
protected
float
m_DefaultBrightness
= 5.5;
28
protected
float
m_DefaultRadius
= 20;
29
30
void
Roadblock_Light
()
31
{
32
SetVisibleDuringDaylight(
true
);
33
SetRadiusTo(
m_DefaultRadius
);
34
SetBrightnessTo(
m_DefaultBrightness
);
35
FadeIn(1);
36
SetFadeOutTime(2);
37
SetFlareVisible(
false
);
38
SetCastShadow(
false
);
39
SetAmbientColor(0.9, 0.9, 0.7);
40
SetDiffuseColor(0.9, 0.9, 0.7);
41
42
SetBlinkingSpeed(1);
43
}
44
}
m_DefaultRadius
float m_DefaultRadius
Definition
ContaminatedArea_Dynamic.c:14
m_DefaultBrightness
enum eAreaDecayStage m_DefaultBrightness
EntityAI
Definition
Building.c:6
House
Definition
CrashBase.c:2
Param3
Definition
EntityAI.c:95
PointLightBase
Definition
StaticObj_Roadblock_Wood_Small.c:26
PointLightBase::Roadblock_Light
void Roadblock_Light()
Definition
StaticObj_Roadblock_Wood_Small.c:30
ScriptedLightBase
Definition
PointLightBase.c:2
StaticObj_Roadblock_Wood_Small
Definition
StaticObj_Roadblock_Wood_Small.c:2
StaticObj_Roadblock_Wood_Small::EEInit
override void EEInit()
Definition
StaticObj_Roadblock_Wood_Small.c:5
StaticObj_Roadblock_Wood_Small::m_BlinkingLight
PointLightBase m_BlinkingLight
Definition
StaticObj_Roadblock_Wood_Small.c:3
StaticObj_Roadblock_Wood_Small::EEDelete
override void EEDelete(EntityAI parent)
Definition
StaticObj_Roadblock_Wood_Small.c:13
GetGame
proto native CGame GetGame()
scripts
4_World
Entities
Building
Wrecks
StaticObj_Roadblock_Wood_Small.c
Generated by
1.10.0