DayZ
1.24
Loading...
Searching...
No Matches
ContaminatedArea_Local.c
Go to the documentation of this file.
1
class
ContaminatedArea_Local
:
ContaminatedArea_Dynamic
2
{
3
const
float
TICK_RATE
= 1;
4
ref
Timer
m_Timer1
=
new
Timer
;
5
float
m_Lifetime
= 360;
6
// ----------------------------------------------
7
// INITIAL SETUP
8
// ----------------------------------------------
9
10
void
ContaminatedArea_Local
()
11
{
12
m_EffectsPriority
= -10;
13
}
14
15
override
void
SetupZoneData
(
EffectAreaParams
params
)
16
{
17
params
.m_ParamPartId =
ParticleList
.
CONTAMINATED_AREA_GAS_AROUND
;
18
params
.m_ParamInnerRings = 0;
19
params
.m_ParamPosHeight = 3;
20
params
.m_ParamNegHeight = 5;
21
params
.m_ParamRadius = 10;
22
params
.m_ParamOuterToggle =
false
;
23
params
.m_ParamTriggerType =
"ContaminatedTrigger_Local"
;
24
25
params
.m_ParamAroundPartId = 0;
26
params
.m_ParamTinyPartId = 0;
27
28
super
.SetupZoneData(
params
);
29
}
30
31
override
void
EEInit
()
32
{
33
if
(
GetGame
().IsServer() || !
GetGame
().IsMultiplayer())
34
{
35
SetupZoneData
(
new
EffectAreaParams
);
36
m_Timer1
.Run(
TICK_RATE
,
this
,
"Tick"
,
NULL
,
true
);
37
}
38
}
39
40
override
void
SpawnItems
()
41
{
42
// override base funcionality as we don't want any items spawned here
43
}
44
45
override
float
GetStartDecayLifetime
()
46
{
47
return
20;
48
}
49
50
override
float
GetFinishDecayLifetime
()
51
{
52
return
10;
53
}
54
55
override
float
GetRemainingTime
()
56
{
57
return
m_Lifetime
;
58
}
59
60
override
void
Tick
()
61
{
62
m_Lifetime
-=
TICK_RATE
;
63
if
(
m_Lifetime
<= 0)
64
Delete();
65
}
66
67
68
}
ContaminatedArea_Dynamic
Definition
ContaminatedArea_Dynamic.c:32
ContaminatedArea_Local
Definition
ContaminatedArea_Local.c:2
ContaminatedArea_Local::SpawnItems
override void SpawnItems()
Definition
ContaminatedArea_Local.c:40
ContaminatedArea_Local::TICK_RATE
const float TICK_RATE
Definition
ContaminatedArea_Local.c:3
ContaminatedArea_Local::m_Lifetime
float m_Lifetime
Definition
ContaminatedArea_Local.c:5
ContaminatedArea_Local::EEInit
override void EEInit()
Definition
ContaminatedArea_Local.c:31
ContaminatedArea_Local::SetupZoneData
override void SetupZoneData(EffectAreaParams params)
Definition
ContaminatedArea_Local.c:15
ContaminatedArea_Local::GetRemainingTime
override float GetRemainingTime()
Definition
ContaminatedArea_Local.c:55
ContaminatedArea_Local::ContaminatedArea_Local
void ContaminatedArea_Local()
Definition
ContaminatedArea_Local.c:10
ContaminatedArea_Local::GetFinishDecayLifetime
override float GetFinishDecayLifetime()
Definition
ContaminatedArea_Local.c:50
ContaminatedArea_Local::GetStartDecayLifetime
override float GetStartDecayLifetime()
Definition
ContaminatedArea_Local.c:45
ContaminatedArea_Local::m_Timer1
ref Timer m_Timer1
Definition
ContaminatedArea_Local.c:4
ContaminatedArea_Local::Tick
override void Tick()
Definition
ContaminatedArea_Local.c:60
EffectArea::m_EffectsPriority
int m_EffectsPriority
Definition
EffectArea.c:66
Param3
Definition
EntityAI.c:95
ParticleList
Definition
ParticleList.c:12
ParticleList::CONTAMINATED_AREA_GAS_AROUND
static const int CONTAMINATED_AREA_GAS_AROUND
Definition
ParticleList.c:279
Timer
Definition
DayZPlayerImplement.c:61
GetGame
proto native CGame GetGame()
scripts
4_World
Classes
ContaminatedArea
ContaminatedArea_Local.c
Generated by
1.10.0