DayZ 1.24
Loading...
Searching...
No Matches
ContaminatedArea.c
Go to the documentation of this file.
2{
4 {
5 super.OnPlayerEnterServer(player, trigger);
6 player.IncreaseContaminatedAreaCount();
7 }
8
10 {
11 super.OnPlayerExitServer(player, trigger);
12 player.DecreaseContaminatedAreaCount();
13 }
14}
15
17{
18 // ----------------------------------------------
19 // INITIAL SETUP
20 // ----------------------------------------------
21
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 != "")
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}
float m_Radius
override void EEInit()
override void InitZoneServer()
override void EEDelete(EntityAI parent)
override void InitZoneClient()
ContaminatedArea_Base EffectArea SetupZoneData(EffectAreaParams params)
vector m_Position
Cached world position.
Definition Effect.c:41
void CreateTrigger()
Definition TrapBase.c:468
override void OnPlayerEnterServer(PlayerBase player, EffectTrigger trigger)
override void OnPlayerExitServer(PlayerBase player, EffectTrigger trigger)
Definition Debug.c:14
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
proto native CGame GetGame()