DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
ContaminatedArea_Dynamic Class Reference

Private Member Functions

void ContaminatedArea_Dynamic ()
 
override void EEOnCECreate ()
 
float GetRemainingTime ()
 
float GetStartDecayLifetime ()
 
float GetFinishDecayLifetime ()
 
override void Tick ()
 
void SetDecayState (int newState)
 
override void EEInit ()
 
override void InitZone ()
 
override void InitZoneServer ()
 
void SpawnItems ()
 
override void InitZoneClient ()
 
override void OnParticleAllocation (ParticleManager pm, array< ParticleSource > particles)
 
override void CreateTrigger (vector pos, int radius)
 
void PlayFX ()
 
void PlayExplosionLight ()
 
void PlayFlareVFX ()
 
override void EEDelete (EntityAI parent)
 
override void OnVariablesSynchronized ()
 

Private Attributes

protected ref Timer m_StartupTimer
 
protected ref Timer m_FXTimer
 
protected FlareLight m_FlareLight
 
protected ShellLight m_ShellLight
 
protected vector m_OffsetPos
 
protected int m_DecayState = eAreaDecayStage.INIT
 
const int AIRBORNE_EXPLOSION_DELAY = 20
 
const int AREA_SETUP_DELAY = 10
 
const float AIRBORNE_FX_OFFSET = 50
 
const float ARTILLERY_SHELL_SPEED = 100
 
const float DECAY_START_PART_SIZE = 32
 
const int DECAY_START_PART_BIRTH_RATE = 1
 
const float DECAY_END_PART_SIZE = 17
 
const int DECAY_END_PART_BIRTH_RATE = 1
 
const float START_DECAY_LIFETIME = 900
 
const float FINISH_DECAY_LIFETIME = 300
 
const ref array< stringSPAWN_ITEM_TYPE = {"Grenade_ChemGas"}
 
const ref array< intSPAWN_ITEM_COUNT = {Math.RandomIntInclusive(2,5)}
 
const ref array< floatSPAWN_ITEM_RAD_MIN = {5}
 
const ref array< floatSPAWN_ITEM_RAD_MAX = {15}
 

Constructor & Destructor Documentation

◆ ContaminatedArea_Dynamic()

void ContaminatedArea_Dynamic ( )
inlineprivate

Member Function Documentation

◆ CreateTrigger()

override void CreateTrigger ( vector  pos,
int  radius 
)
inlineprivate

◆ EEDelete()

override void EEDelete ( EntityAI  parent)
inlineprivate

◆ EEInit()

◆ EEOnCECreate()

◆ GetFinishDecayLifetime()

float GetFinishDecayLifetime ( )
inlineprivate

References FINISH_DECAY_LIFETIME.

Referenced by Tick().

◆ GetRemainingTime()

float GetRemainingTime ( )
inlineprivate

Referenced by Tick().

◆ GetStartDecayLifetime()

float GetStartDecayLifetime ( )
inlineprivate

References START_DECAY_LIFETIME.

Referenced by Tick().

◆ InitZone()

override void InitZone ( )
inlineprivate

References m_DecayState.

Referenced by EEInit().

◆ InitZoneClient()

override void InitZoneClient ( )
inlineprivate

References m_Radius.

Referenced by EEInit(), and OnVariablesSynchronized().

◆ InitZoneServer()

override void InitZoneServer ( )
inlineprivate

◆ OnParticleAllocation()

override void OnParticleAllocation ( ParticleManager  pm,
array< ParticleSource particles 
)
inlineprivate

◆ OnVariablesSynchronized()

◆ PlayExplosionLight()

void PlayExplosionLight ( )
inlineprivate

◆ PlayFlareVFX()

void PlayFlareVFX ( )
inlineprivate

References ECE_LOCAL, ECE_SETUP, GetGame(), m_FlareLight, and m_OffsetPos.

Referenced by EEInit().

◆ PlayFX()

void PlayFX ( )
inlineprivate

◆ SetDecayState()

void SetDecayState ( int  newState)
inlineprivate

References ContaminatedTrigger_Dynamic(), and m_DecayState.

Referenced by Tick().

◆ SpawnItems()

◆ Tick()

override void Tick ( )
inlineprivate

Field Documentation

◆ AIRBORNE_EXPLOSION_DELAY

const int AIRBORNE_EXPLOSION_DELAY = 20
private

Referenced by EEOnCECreate().

◆ AIRBORNE_FX_OFFSET

const float AIRBORNE_FX_OFFSET = 50
private

Referenced by EEInit(), and EEOnCECreate().

◆ AREA_SETUP_DELAY

const int AREA_SETUP_DELAY = 10
private

Referenced by EEOnCECreate().

◆ ARTILLERY_SHELL_SPEED

const float ARTILLERY_SHELL_SPEED = 100
private

Referenced by EEOnCECreate().

◆ DECAY_END_PART_BIRTH_RATE

const int DECAY_END_PART_BIRTH_RATE = 1
private

◆ DECAY_END_PART_SIZE

const float DECAY_END_PART_SIZE = 17
private

◆ DECAY_START_PART_BIRTH_RATE

const int DECAY_START_PART_BIRTH_RATE = 1
private

◆ DECAY_START_PART_SIZE

const float DECAY_START_PART_SIZE = 32
private

◆ FINISH_DECAY_LIFETIME

const float FINISH_DECAY_LIFETIME = 300
private

Referenced by GetFinishDecayLifetime().

◆ m_DecayState

◆ m_FlareLight

protected FlareLight m_FlareLight
private

Referenced by PlayFlareVFX().

◆ m_FXTimer

protected ref Timer m_FXTimer
private

Referenced by EEOnCECreate().

◆ m_OffsetPos

protected vector m_OffsetPos
private

◆ m_ShellLight

protected ShellLight m_ShellLight
private

Referenced by PlayExplosionLight().

◆ m_StartupTimer

protected ref Timer m_StartupTimer
private

Referenced by EEOnCECreate().

◆ SPAWN_ITEM_COUNT

const ref array<int> SPAWN_ITEM_COUNT = {Math.RandomIntInclusive(2,5)}
private

Referenced by SpawnItems().

◆ SPAWN_ITEM_RAD_MAX

const ref array<float> SPAWN_ITEM_RAD_MAX = {15}
private

Referenced by SpawnItems().

◆ SPAWN_ITEM_RAD_MIN

const ref array<float> SPAWN_ITEM_RAD_MIN = {5}
private

Referenced by SpawnItems().

◆ SPAWN_ITEM_TYPE

const ref array<string> SPAWN_ITEM_TYPE = {"Grenade_ChemGas"}
private

Referenced by SpawnItems().

◆ START_DECAY_LIFETIME

const float START_DECAY_LIFETIME = 900
private

Referenced by GetStartDecayLifetime().


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