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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 28 of file fireworkslauncher.c.

Constructor & Destructor Documentation

◆ FireworksLauncherClientEvent()

void FireworksLauncherClientEvent ( FireworksLauncher item,
int index )
inlineprotected

Definition at line 88 of file fireworkslauncher.c.

References Debug::LogError(), m_Color, m_Index, and m_Item.

◆ ~FireworksLauncherClientEvent()

Member Function Documentation

◆ CalculateExplosionPosition()

void CalculateExplosionPosition ( )
inlineprotected

Definition at line 155 of file fireworkslauncher.c.

References GetExplosionDistance(), GetShotPos(), m_ExplosionPos, and m_ShotDir.

Referenced by GetExplosionPosition().

◆ GetExplosionDelay()

float GetExplosionDelay ( )
inlineprotected

Definition at line 78 of file fireworkslauncher.c.

References Math::RandomFloatInclusive().

Referenced by OnFired().

◆ GetExplosionDistance()

float GetExplosionDistance ( )
inlineprotected

◆ GetExplosionPosition()

◆ GetExplosionSoundSet()

string GetExplosionSoundSet ( )
inlineprotected

Definition at line 73 of file fireworkslauncher.c.

Referenced by PlayExplosionSound().

◆ GetExplParticleFromSequence()

◆ GetLightDelay()

int GetLightDelay ( )
inlineprotected

Definition at line 58 of file fireworkslauncher.c.

Referenced by OnExplode(), and OnExplode().

◆ GetSecondaryExplosionCount()

int GetSecondaryExplosionCount ( )
inlineprotected

Definition at line 169 of file fireworkslauncher.c.

◆ GetSecondaryExplosionDelay()

int GetSecondaryExplosionDelay ( )
inlineprotected

Definition at line 212 of file fireworkslauncher.c.

References Math::RandomIntInclusive().

Referenced by RequestSecondaryExplosion().

◆ GetShotDispersionAngle()

float GetShotDispersionAngle ( )
inlineprotected

Definition at line 68 of file fireworkslauncher.c.

References Math::RandomFloatInclusive().

Referenced by OnFired().

◆ GetShotPos()

vector GetShotPos ( )
inlineprotected

Definition at line 137 of file fireworkslauncher.c.

References Debug::LogError(), m_Index, and m_Item.

Referenced by CalculateExplosionPosition(), GetExplosionPosition(), and OnFired().

◆ GetSoundDelay()

int GetSoundDelay ( )
inlineprotected

Definition at line 53 of file fireworkslauncher.c.

Referenced by OnExplode(), and OnExplode().

◆ OnExplode()

◆ OnFired()

◆ PlayExplosionSound()

void PlayExplosionSound ( )
inlineprotected

Definition at line 273 of file fireworkslauncher.c.

References GetExplosionSoundSet(), m_ExplosionSound, m_FireSound, and m_Item.

Referenced by OnExplode().

◆ RequestSecondaryExplosion()

◆ SetupLight()

void SetupLight ( PointLightBase light)
inlineprotected

Definition at line 237 of file fireworkslauncher.c.

References ErrorEx, and m_Color.

Referenced by SpawnLight().

◆ SpawnLight()

void SpawnLight ( )
inlineprotected

Definition at line 267 of file fireworkslauncher.c.

References GetExplosionPosition(), m_ExplosionLight, and SetupLight().

Referenced by OnExplode().

◆ SpawnSecondaryExplosion()

void SpawnSecondaryExplosion ( )
inlineprotected

Field Documentation

◆ m_Color

◆ m_Events

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

◆ m_ExplosionLight

ExplosionLight m_ExplosionLight
protected

Definition at line 39 of file fireworkslauncher.c.

Referenced by SpawnLight().

◆ m_ExplosionPos

vector m_ExplosionPos
protected

Definition at line 33 of file fireworkslauncher.c.

Referenced by CalculateExplosionPosition(), and GetExplosionPosition().

◆ m_ExplosionSound

EffectSound m_ExplosionSound
protected

Definition at line 35 of file fireworkslauncher.c.

Referenced by ~FireworksLauncherClientEvent(), and PlayExplosionSound().

◆ m_FireSound

EffectSound m_FireSound
protected

Definition at line 34 of file fireworkslauncher.c.

Referenced by ~FireworksLauncherClientEvent(), OnFired(), and PlayExplosionSound().

◆ m_Index

◆ m_Item

◆ m_ParticleAfterBurnEnd

ParticleSource m_ParticleAfterBurnEnd
protected

Definition at line 40 of file fireworkslauncher.c.

Referenced by ~FireworksLauncherClientEvent(), OnExplode(), and OnFired().

◆ m_ParticleExplosion

ParticleSource m_ParticleExplosion
protected

Definition at line 37 of file fireworkslauncher.c.

Referenced by OnExplode().

◆ m_ParticleShot

ParticleSource m_ParticleShot
protected

Definition at line 36 of file fireworkslauncher.c.

Referenced by OnFired().

◆ m_RemainingExplosions

int m_RemainingExplosions = GetSecondaryExplosionCount()
protected

Definition at line 42 of file fireworkslauncher.c.

Referenced by RequestSecondaryExplosion().

◆ m_ShotDir

vector m_ShotDir
protected

Definition at line 38 of file fireworkslauncher.c.

Referenced by CalculateExplosionPosition(), and OnFired().

◆ m_Timer

ref Timer m_Timer = new Timer()
protected

Definition at line 30 of file fireworkslauncher.c.

Referenced by OnFired().


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