DayZ 1.24
Loading...
Searching...
No Matches
SpookyArea Class Reference
Inheritance diagram for SpookyArea:
[legend]
Collaboration diagram for SpookyArea:
[legend]

Private Member Functions

override void EEInit ()
 
override void InitZoneServer ()
 
override void InitZoneClient ()
 

Detailed Description

Definition at line 2 of file SpookyArea.c.

Member Function Documentation

◆ EEInit()

override void SpookyArea::EEInit ( )
inlineprivate

Definition at line 7 of file SpookyArea.c.

8 {
9 // We make sure we have the particle array
10 if (!m_ToxicClouds)
12
13 SetSynchDirty();
14
15#ifdef DEVELOPER
16 // Debugs when placing entity by hand using internal tools
17 if (GetGame().IsServer() && !GetGame().IsMultiplayer())
18 {
19 Debug.Log("YOU CAN IGNORE THE FOLLOWING DUMP");
20 InitZone();
21 Debug.Log("YOU CAN USE FOLLOWING DATA PROPERLY");
22 }
23#endif
24
25 if (GetGame().IsClient() && GetGame().IsMultiplayer())
26 InitZone();
27
28 super.EEInit();
29 }
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
ref array< Particle > m_ToxicClouds
Definition EffectArea.c:72
void InitZone()
Definition EffectArea.c:168
proto native CGame GetGame()

References GetGame(), EffectArea::InitZone(), Debug::Log(), and EffectArea::m_ToxicClouds.

◆ InitZoneClient()

override void SpookyArea::InitZoneClient ( )
inlineprivate

Definition at line 40 of file SpookyArea.c.

41 {
42 super.InitZoneClient();
43
44 // We spawn VFX on client
46 }
bool m_OuterRingToggle
Definition EffectArea.c:53
int m_InnerRings
Definition EffectArea.c:50
float m_Radius
Definition EffectArea.c:44
int m_OuterRingOffset
Definition EffectArea.c:54
int m_InnerSpacing
Definition EffectArea.c:51
int m_ParticleID
Definition EffectArea.c:61
void PlaceParticles(vector pos, float radius, int nbRings, int innerSpacing, bool outerToggle, int outerSpacing, int outerOffset, int partId)
Definition EffectArea.c:218
int m_OuterSpacing
Definition EffectArea.c:55

References EffectArea::m_InnerRings, EffectArea::m_InnerSpacing, EffectArea::m_OuterRingOffset, EffectArea::m_OuterRingToggle, EffectArea::m_OuterSpacing, EffectArea::m_ParticleID, EffectArea::m_Radius, and EffectArea::PlaceParticles().

◆ InitZoneServer()

override void SpookyArea::InitZoneServer ( )
inlineprivate

Definition at line 31 of file SpookyArea.c.

32 {
33 super.InitZoneServer();
34
35 // We create the trigger on server
36 if (m_TriggerType != "")
38 }
void CreateTrigger()
Definition TrapBase.c:468
vector m_Position
Definition EffectArea.c:41
string m_TriggerType
Definition EffectArea.c:69

References CreateTrigger(), EffectArea::m_Position, EffectArea::m_Radius, and EffectArea::m_TriggerType.


The documentation for this class was generated from the following file: