DayZ
1.24
Loading...
Searching...
No Matches
ContaminatedArea.c
Go to the documentation of this file.
1
class
ContaminatedArea_Base
:
EffectArea
2
{
3
override
void
OnPlayerEnterServer
(
PlayerBase
player
,
EffectTrigger
trigger
)
4
{
5
super
.OnPlayerEnterServer(
player
,
trigger
);
6
player
.IncreaseContaminatedAreaCount();
7
}
8
9
override
void
OnPlayerExitServer
(
PlayerBase
player
,
EffectTrigger
trigger
)
10
{
11
super
.OnPlayerExitServer(
player
,
trigger
);
12
player
.DecreaseContaminatedAreaCount();
13
}
14
}
15
16
class
ContaminatedArea_Static
:
ContaminatedArea_Base
17
{
18
// ----------------------------------------------
19
// INITIAL SETUP
20
// ----------------------------------------------
21
22
override
void
SetupZoneData
(
EffectAreaParams
params
)
23
{
24
super
.SetupZoneData(
params
);
25
}
26
27
override
void
EEInit
()
28
{
29
// We make sure we have the particle array
30
if
(!m_ToxicClouds)
31
m_ToxicClouds =
new
array<Particle>
;
32
33
SetSynchDirty();
34
35
#ifdef DEVELOPER
36
// Debugs when placing entity by hand using internal tools
37
if
(
GetGame
().IsServer() && !
GetGame
().IsMultiplayer())
38
{
39
Debug
.
Log
(
"YOU CAN IGNORE THE FOLLOWING DUMP"
);
40
InitZone();
41
Debug
.
Log
(
"YOU CAN USE FOLLOWING DATA PROPERLY"
);
42
}
43
#endif
44
45
if
(
GetGame
().IsClient() &&
GetGame
().IsMultiplayer())
46
InitZone();
47
48
super
.EEInit();
49
}
50
51
52
override
void
InitZoneServer
()
53
{
54
super
.InitZoneServer();
55
56
// We create the trigger on server
57
if
(m_TriggerType !=
""
)
58
CreateTrigger
(
m_Position
,
m_Radius
);
59
}
60
61
override
void
InitZoneClient
()
62
{
63
super
.InitZoneClient();
64
65
// We spawn VFX on client
66
PlaceParticles(GetWorldPosition(),
m_Radius
, m_InnerRings, m_InnerSpacing, m_OuterRingToggle, m_OuterSpacing, m_OuterRingOffset, m_ParticleID);
67
}
68
69
override
void
EEDelete
(
EntityAI
parent)
70
{
71
super
.EEDelete(parent);
72
}
73
}
m_Radius
float m_Radius
Definition
AIGroupBehaviour.c:10
EEInit
override void EEInit()
Definition
ContaminatedArea.c:27
InitZoneServer
override void InitZoneServer()
Definition
ContaminatedArea.c:52
EEDelete
override void EEDelete(EntityAI parent)
Definition
ContaminatedArea.c:69
InitZoneClient
override void InitZoneClient()
Definition
ContaminatedArea.c:61
SetupZoneData
ContaminatedArea_Base EffectArea SetupZoneData(EffectAreaParams params)
Definition
ContaminatedArea.c:22
m_Position
vector m_Position
Cached world position.
Definition
Effect.c:41
CreateTrigger
void CreateTrigger()
Definition
TrapBase.c:468
ContaminatedArea_Base
Definition
ContaminatedArea.c:2
ContaminatedArea_Base::OnPlayerEnterServer
override void OnPlayerEnterServer(PlayerBase player, EffectTrigger trigger)
Definition
ContaminatedArea.c:3
ContaminatedArea_Base::OnPlayerExitServer
override void OnPlayerExitServer(PlayerBase player, EffectTrigger trigger)
Definition
ContaminatedArea.c:9
Debug
Definition
Debug.c:14
Debug::Log
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition
Debug.c:133
EffectArea
Definition
EffectArea.c:37
EffectTrigger
Definition
ContaminatedTrigger.c:3
EntityAI
Definition
Building.c:6
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
GetGame
proto native CGame GetGame()
scripts
4_World
Classes
ContaminatedArea
ContaminatedArea.c
Generated by
1.10.0