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

Private Member Functions

protected int GetSoundDelay ()
 
protected int GetLightDelay ()
 
protected float GetExplosionDistance ()
 
protected float GetShotDispersionAngle ()
 
protected string GetExplosionSoundSet ()
 
protected float GetExplosionDelay ()
 
void FireworksLauncherClientEvent (FireworksLauncher item, int index)
 
void ~FireworksLauncherClientEvent ()
 
override protected void OnFired ()
 
protected vector GetShotPos ()
 
protected void CalculateExplosionPosition ()
 
protected vector GetExplosionPosition ()
 
int GetSecondaryExplosionCount ()
 
protected void OnExplode ()
 
protected void RequestSecondaryExplosion ()
 
protected void SpawnSecondaryExplosion ()
 
protected int GetSecondaryExplosionDelay ()
 
protected int GetExplParticleFromSequence ()
 
protected void SetupLight (PointLightBase light)
 
protected void SpawnLight ()
 
protected void PlayExplosionSound ()
 

Private Attributes

protected ref Timer m_Timer = new Timer()
 
protected FireworksLauncher m_Item
 
protected int m_Index
 
protected vector m_ExplosionPos
 
protected EffectSound m_FireSound
 
protected EffectSound m_ExplosionSound
 
protected ParticleSource m_ParticleShot
 
protected ParticleSource m_ParticleExplosion
 
protected vector m_ShotDir
 
protected ExplosionLight m_ExplosionLight
 
protected ParticleSource m_ParticleAfterBurnEnd
 
protected string m_Color
 
protected int m_RemainingExplosions = GetSecondaryExplosionCount()
 
protected ref array< ref FireworksLauncherClientEventBase > m_Events = new array<ref FireworksLauncherClientEventBase>
 

Constructor & Destructor Documentation

◆ FireworksLauncherClientEvent()

◆ ~FireworksLauncherClientEvent()

Member Function Documentation

◆ CalculateExplosionPosition()

protected void CalculateExplosionPosition ( )
inlineprivate

◆ GetExplosionDelay()

protected float GetExplosionDelay ( )
inlineprivate

References Math::RandomFloatInclusive().

Referenced by OnFired().

◆ GetExplosionDistance()

protected float GetExplosionDistance ( )
inlineprivate

◆ GetExplosionPosition()

◆ GetExplosionSoundSet()

protected string GetExplosionSoundSet ( )
inlineprivate

Referenced by PlayExplosionSound().

◆ GetExplParticleFromSequence()

◆ GetLightDelay()

protected int GetLightDelay ( )
inlineprivate

Referenced by OnExplode(), and OnExplode().

◆ GetSecondaryExplosionCount()

int GetSecondaryExplosionCount ( )
inlineprivate

◆ GetSecondaryExplosionDelay()

protected int GetSecondaryExplosionDelay ( )
inlineprivate

◆ GetShotDispersionAngle()

protected float GetShotDispersionAngle ( )
inlineprivate

References Math::RandomFloatInclusive().

Referenced by OnFired().

◆ GetShotPos()

protected vector GetShotPos ( )
inlineprivate

◆ GetSoundDelay()

protected int GetSoundDelay ( )
inlineprivate

Referenced by OnExplode(), and OnExplode().

◆ OnExplode()

◆ OnFired()

◆ PlayExplosionSound()

protected void PlayExplosionSound ( )
inlineprivate

◆ RequestSecondaryExplosion()

◆ SetupLight()

protected void SetupLight ( PointLightBase  light)
inlineprivate

References ErrorEx, and m_Color.

Referenced by SpawnLight().

◆ SpawnLight()

protected void SpawnLight ( )
inlineprivate

◆ SpawnSecondaryExplosion()

protected void SpawnSecondaryExplosion ( )
inlineprivate

Field Documentation

◆ m_Color

◆ m_Events

protected ref array<ref FireworksLauncherClientEventBase> m_Events = new array<ref FireworksLauncherClientEventBase>
private

◆ m_ExplosionLight

protected ExplosionLight m_ExplosionLight
private

Referenced by SpawnLight().

◆ m_ExplosionPos

protected vector m_ExplosionPos
private

◆ m_ExplosionSound

protected EffectSound m_ExplosionSound
private

◆ m_FireSound

protected EffectSound m_FireSound
private

◆ m_Index

◆ m_Item

◆ m_ParticleAfterBurnEnd

protected ParticleSource m_ParticleAfterBurnEnd
private

◆ m_ParticleExplosion

protected ParticleSource m_ParticleExplosion
private

Referenced by OnExplode().

◆ m_ParticleShot

protected ParticleSource m_ParticleShot
private

Referenced by OnFired().

◆ m_RemainingExplosions

protected int m_RemainingExplosions = GetSecondaryExplosionCount()
private

◆ m_ShotDir

protected vector m_ShotDir
private

◆ m_Timer

protected ref Timer m_Timer = new Timer()
private

Referenced by OnFired().


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