PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
FireworksLauncher Class Reference

Private Member Functions

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

Private Attributes

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

Constructor & Destructor Documentation

◆ FireworksLauncher()

◆ ~FireworksLauncher()

Member Function Documentation

◆ CanIgniteItem()

override protected bool CanIgniteItem ( EntityAI  ignite_target = NULL)
inlineprivate

◆ CanPutInCargo()

override protected bool CanPutInCargo ( EntityAI  parent)
inlineprivate

References GetState().

◆ CanPutIntoHands()

override protected bool CanPutIntoHands ( EntityAI  parent)
inlineprivate

References GetState().

◆ GetAmmoType()

protected string GetAmmoType ( )
inlineprivate

◆ GetColorSequence()

string GetColorSequence ( )
inlineprivate

◆ GetDamageType()

protected int GetDamageType ( )
inlineprivate

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprivate

◆ GetDeployTime()

override float GetDeployTime ( )
inlineprivate

how long it takes to deploy this item in seconds

◆ GetEventDelay()

override protected float GetEventDelay ( )
inlineprivate

◆ GetFuseDelay()

protected float GetFuseDelay ( )
inlineprivate

Referenced by OnFuseIgnitedServer().

◆ GetFuseSoundSet()

protected string GetFuseSoundSet ( )
inlineprivate

Referenced by OnFuseIgnitedClient().

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprivate

◆ GetMaxAllowedWetness()

override protected float GetMaxAllowedWetness ( )
inlineprivate

◆ GetMaxShots()

protected int GetMaxShots ( )
inlineprivate

Referenced by FireworksLauncher(), and OnEventServer().

◆ IsDeployable()

override bool IsDeployable ( )
inlineprivate

◆ IsIgnited()

override protected bool IsIgnited ( )
inlineprivate

References GetState().

◆ OnEventServer()

override protected void OnEventServer ( int  type)
inlineprivate

Called periodically but only after the entity gets ignited.

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

Referenced by OnFiringStartServer().

◆ OnFiringStartClient()

protected void OnFiringStartClient ( )
inlineprivate

◆ OnFiringStartServer()

protected void OnFiringStartServer ( )
inlineprivate

References OnEventServer().

Referenced by OnStateChangedServer().

◆ OnFiringStop()

protected void OnFiringStop ( )
inlineprivate

◆ OnFuseIgnitedClient()

◆ OnFuseIgnitedServer()

protected void OnFuseIgnitedServer ( )
inlineprivate

◆ OnIgnitedThis()

override void OnIgnitedThis ( EntityAI  fire_source)
inlineprivate

Executed on Server when some item ignited this one.

References m_Events, m_Index, m_TimerEvent, and Timer::Stop().

◆ OnIndexChangedClient()

protected void OnIndexChangedClient ( )
inlineprivate

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

Referenced by OnVariablesSynchronized().

◆ OnPlacementComplete()

override protected void OnPlacementComplete ( Man  player,
vector  position = "0 0 0",
vector  orientation = "0 0 0" 
)
inlineprivate

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

◆ OnStateChangedClient()

override protected void OnStateChangedClient ( EFireworksState  currentState)
inlineprivate

◆ OnStateChangedServer()

override protected void OnStateChangedServer ( EFireworksState  currentState)
inlineprivate

◆ OnStoreLoad()

override protected bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)
inlineprivate

◆ OnStoreSave()

override protected void OnStoreSave ( ParamsWriteContext  ctx)
inlineprivate

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

◆ OnVariablesSynchronized()

override protected void OnVariablesSynchronized ( )
inlineprivate

◆ RestartEventTimer()

protected void RestartEventTimer ( )
inlineprivate

Starts event timer.

References GetEventDelay(), and m_TimerEvent.

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

◆ SetupColorSequences()

protected void SetupColorSequences ( )
inlineprivate

References m_ColorSequence.

Referenced by FireworksLauncher().

◆ SpawnEvent()

protected FireworksLauncherClientEventBase SpawnEvent ( )
inlineprivate

References m_Index.

Referenced by OnIndexChangedClient().

Field Documentation

◆ m_ColorSequence

◆ m_ColorSequenceIndex

int m_ColorSequenceIndex
private

◆ m_Events

ref array<ref FireworksLauncherClientEventBase> m_Events
private

◆ m_FuseSound

◆ m_FuseSoundStart

EffectSound m_FuseSoundStart
private

◆ m_Index

◆ m_IndexPrev

int m_IndexPrev
private

Referenced by OnVariablesSynchronized().

◆ m_ParticleAfterBurnEnd

ParticleSource m_ParticleAfterBurnEnd
private

◆ m_ParticleFuse

ParticleSource m_ParticleFuse
private

◆ m_TimerFuse

ref Timer m_TimerFuse
private

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