DayZ 1.24
Loading...
Searching...
No Matches
ContaminatedArea.c File Reference

Go to the source code of this file.

Classes

class  ContaminatedArea_Base
 

Functions

ContaminatedArea_Base EffectArea SetupZoneData (EffectAreaParams params)
 
override void OnPlayerEnterServer (PlayerBase player, EffectTrigger trigger)
 
override void OnPlayerExitServer (PlayerBase player, EffectTrigger trigger)
 
override void EEInit ()
 
override void InitZoneServer ()
 
override void InitZoneClient ()
 
override void EEDelete (EntityAI parent)
 

Function Documentation

◆ EEDelete()

override void EEDelete ( EntityAI parent)

Definition at line 69 of file ContaminatedArea.c.

70 {
71 super.EEDelete(parent);
72 }

◆ EEInit()

override void EEInit ( )

Definition at line 27 of file ContaminatedArea.c.

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 }
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()

◆ InitZoneClient()

override void InitZoneClient ( )

Definition at line 61 of file ContaminatedArea.c.

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 }
float m_Radius

References m_Radius.

◆ InitZoneServer()

override void InitZoneServer ( )

Definition at line 52 of file ContaminatedArea.c.

53 {
54 super.InitZoneServer();
55
56 // We create the trigger on server
57 if (m_TriggerType != "")
59 }
vector m_Position
Cached world position.
Definition Effect.c:41
void CreateTrigger()
Definition TrapBase.c:468

References CreateTrigger(), m_Position, and m_Radius.

◆ OnPlayerEnterServer()

override void SetupZoneData::OnPlayerEnterServer ( PlayerBase player,
EffectTrigger trigger )

Definition at line 23 of file ContaminatedArea.c.

23 {
24 super.SetupZoneData(params);
25 }
26
27 override void EEInit()
override void EEInit()

◆ OnPlayerExitServer()

override void SetupZoneData::OnPlayerExitServer ( PlayerBase player,
EffectTrigger trigger )

Definition at line 29 of file ContaminatedArea.c.

◆ SetupZoneData()

Definition at line 1 of file ContaminatedArea.c.

23 {
24 super.SetupZoneData(params);
25 }