Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
FireworksLauncher Class Reference
Inheritance diagram for FireworksLauncher:
Anniversary_FireworksLauncher

Protected Member Functions

bool CanIgniteItem (EntityAI ignite_target=NULL)
bool CanPutInCargo (EntityAI parent)
bool CanPutIntoHands (EntityAI parent)
string GetAmmoType ()
string GetColorSequence ()
int GetDamageType ()
override string GetDeploySoundset ()
float GetEventDelay ()
float GetFuseDelay ()
string GetFuseSoundSet ()
override string GetLoopDeploySoundset ()
float GetMaxAllowedWetness ()
int GetMaxShots ()
bool IsIgnited ()
void OnEventServer (int type)
 Called periodically but only after the entity gets ignited.
void OnFiringStartClient ()
void OnFiringStartServer ()
void OnFiringStop ()
void OnFuseIgnitedClient ()
void OnFuseIgnitedServer ()
override void OnIgnitedThis (EntityAI fire_source)
 Executed on Server when some item ignited this one.
void OnIndexChangedClient ()
void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
void OnStateChangedClient (EFireworksState currentState)
void OnStateChangedServer (EFireworksState currentState)
bool OnStoreLoad (ParamsReadContext ctx, int version)
void OnStoreSave (ParamsWriteContext ctx)
void OnVariablesSynchronized ()
void RestartEventTimer ()
 Starts event timer.
void SetupColorSequences ()
FireworksLauncherClientEventBase SpawnEvent ()

Private Member Functions

void FireworksLauncher ()
void ~FireworksLauncher ()
override float GetDeployTime ()
 how long it takes to deploy this item in seconds
override bool IsDeployable ()

Private Attributes

ref array< stringm_ColorSequence
int m_ColorSequenceIndex
ref array< ref FireworksLauncherClientEventBase > m_Events
EffectSound m_FuseSound
EffectSound m_FuseSoundStart
int m_Index
int m_IndexPrev
ParticleSource m_ParticleAfterBurnEnd
ParticleSource m_ParticleFuse
ref Timer m_TimerFuse

Detailed Description

Definition at line 319 of file fireworkslauncher.c.

Constructor & Destructor Documentation

◆ FireworksLauncher()

◆ ~FireworksLauncher()

void ~FireworksLauncher ( )
inlineprivate

Member Function Documentation

◆ CanIgniteItem()

bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprotected

Definition at line 576 of file fireworkslauncher.c.

◆ CanPutInCargo()

bool CanPutInCargo ( EntityAI parent)
inlineprotected

Definition at line 493 of file fireworkslauncher.c.

References GetState().

◆ CanPutIntoHands()

bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 498 of file fireworkslauncher.c.

References GetState().

◆ GetAmmoType()

string GetAmmoType ( )
inlineprotected

◆ GetColorSequence()

string GetColorSequence ( )
inlineprotected

Definition at line 378 of file fireworkslauncher.c.

References ErrorEx, m_ColorSequence, and m_ColorSequenceIndex.

◆ GetDamageType()

int GetDamageType ( )
inlineprotected

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected

Definition at line 666 of file fireworkslauncher.c.

◆ GetDeployTime()

override float GetDeployTime ( )
inlineprivate

how long it takes to deploy this item in seconds

Definition at line 357 of file fireworkslauncher.c.

◆ GetEventDelay()

float GetEventDelay ( )
inlineprotected

Definition at line 410 of file fireworkslauncher.c.

References Math::RandomFloatInclusive().

Referenced by RestartEventTimer().

◆ GetFuseDelay()

float GetFuseDelay ( )
inlineprotected

Definition at line 425 of file fireworkslauncher.c.

Referenced by OnFuseIgnitedServer().

◆ GetFuseSoundSet()

string GetFuseSoundSet ( )
inlineprotected

Definition at line 415 of file fireworkslauncher.c.

Referenced by OnFuseIgnitedClient().

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprotected

Definition at line 671 of file fireworkslauncher.c.

◆ GetMaxAllowedWetness()

float GetMaxAllowedWetness ( )
inlineprotected

Definition at line 404 of file fireworkslauncher.c.

References GameConstants::STATE_WET.

◆ GetMaxShots()

int GetMaxShots ( )
inlineprotected

Definition at line 420 of file fireworkslauncher.c.

Referenced by FireworksLauncher(), and OnEventServer().

◆ IsDeployable()

override bool IsDeployable ( )
inlineprivate

Definition at line 351 of file fireworkslauncher.c.

◆ IsIgnited()

bool IsIgnited ( )
inlineprotected

Definition at line 571 of file fireworkslauncher.c.

References GetState().

◆ OnEventServer()

void OnEventServer ( int type)
inlineprotected

Called periodically but only after the entity gets ignited.

Definition at line 584 of file fireworkslauncher.c.

References GetAmmoType(), GetDamageType(), GetMaxShots(), GetPosition(), m_Index, m_TimerEvent, RestartEventTimer(), and SetState().

Referenced by OnFiringStartServer().

◆ OnFiringStartClient()

void OnFiringStartClient ( )
inlineprotected

Definition at line 543 of file fireworkslauncher.c.

References m_FuseSound, and m_ParticleFuse.

Referenced by OnStateChangedClient().

◆ OnFiringStartServer()

void OnFiringStartServer ( )
inlineprotected

Definition at line 538 of file fireworkslauncher.c.

References OnEventServer().

Referenced by OnStateChangedServer().

◆ OnFiringStop()

void OnFiringStop ( )
inlineprotected

Definition at line 555 of file fireworkslauncher.c.

◆ OnFuseIgnitedClient()

void OnFuseIgnitedClient ( )
inlineprotected

◆ OnFuseIgnitedServer()

void OnFuseIgnitedServer ( )
inlineprotected

Definition at line 503 of file fireworkslauncher.c.

References CALL_CATEGORY_SYSTEM, g_Game, GetFuseDelay(), and SetState().

Referenced by OnStateChangedServer().

◆ OnIgnitedThis()

override void OnIgnitedThis ( EntityAI fire_source)
inlineprotected

Executed on Server when some item ignited this one.

Definition at line 478 of file fireworkslauncher.c.

References m_Events, m_Index, and m_TimerEvent.

◆ OnIndexChangedClient()

void OnIndexChangedClient ( )
inlineprotected

Definition at line 602 of file fireworkslauncher.c.

References m_Events, m_Index, m_State, and SpawnEvent().

Referenced by OnVariablesSynchronized().

◆ OnPlacementComplete()

void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected

Definition at line 392 of file fireworkslauncher.c.

References g_Game, GetState(), and SetState().

◆ OnStateChangedClient()

void OnStateChangedClient ( EFireworksState currentState)
inlineprotected

Definition at line 461 of file fireworkslauncher.c.

References OnFiringStartClient(), and OnFuseIgnitedClient().

◆ OnStateChangedServer()

void OnStateChangedServer ( EFireworksState currentState)
inlineprotected

Definition at line 441 of file fireworkslauncher.c.

References OnFiringStartServer(), and OnFuseIgnitedServer().

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 642 of file fireworkslauncher.c.

References m_Index, m_State, Serializer::Read(), and SetState().

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 634 of file fireworkslauncher.c.

References m_Index, m_State, and Serializer::Write().

◆ OnVariablesSynchronized()

void OnVariablesSynchronized ( )
inlineprotected

◆ RestartEventTimer()

void RestartEventTimer ( )
inlineprotected

Starts event timer.

Definition at line 561 of file fireworkslauncher.c.

References GetEventDelay(), and m_TimerEvent.

Referenced by Anniversary_FireworksLauncher::OnEventServer(), and OnEventServer().

◆ SetupColorSequences()

void SetupColorSequences ( )
inlineprotected

Definition at line 362 of file fireworkslauncher.c.

References m_ColorSequence.

Referenced by FireworksLauncher().

◆ SpawnEvent()

FireworksLauncherClientEventBase SpawnEvent ( )
inlineprotected

Definition at line 615 of file fireworkslauncher.c.

References m_Index.

Referenced by OnIndexChangedClient().

Field Documentation

◆ m_ColorSequence

◆ m_ColorSequenceIndex

int m_ColorSequenceIndex
private

Definition at line 323 of file fireworkslauncher.c.

Referenced by FireworksLauncher(), and GetColorSequence().

◆ m_Events

ref array<ref FireworksLauncherClientEventBase> m_Events
private

Definition at line 325 of file fireworkslauncher.c.

Referenced by OnIgnitedThis(), and OnIndexChangedClient().

◆ m_FuseSound

EffectSound m_FuseSound
private

◆ m_FuseSoundStart

EffectSound m_FuseSoundStart
private

Definition at line 326 of file fireworkslauncher.c.

Referenced by ~FireworksLauncher(), and OnFuseIgnitedClient().

◆ m_Index

◆ m_IndexPrev

int m_IndexPrev
private

Definition at line 322 of file fireworkslauncher.c.

Referenced by OnVariablesSynchronized().

◆ m_ParticleAfterBurnEnd

ParticleSource m_ParticleAfterBurnEnd
private

Definition at line 329 of file fireworkslauncher.c.

◆ m_ParticleFuse

ParticleSource m_ParticleFuse
private

Definition at line 328 of file fireworkslauncher.c.

Referenced by OnFiringStartClient(), and OnFuseIgnitedClient().

◆ m_TimerFuse

ref Timer m_TimerFuse
private

Definition at line 324 of file fireworkslauncher.c.


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