DayZ 1.24
Loading...
Searching...
No Matches
AnniversaryFireworksLauncherClientEvent Class Reference
Inheritance diagram for AnniversaryFireworksLauncherClientEvent:
[legend]
Collaboration diagram for AnniversaryFireworksLauncherClientEvent:
[legend]

Protected Member Functions

int GetExplParticleFromSequence ()
 
void SetupLight (PointLightBase light)
 
void SpawnSecondaryExplosion ()
 

Additional Inherited Members

- Private Member Functions inherited from FireworksLauncherClientEvent
int GetSoundDelay ()
 
int GetLightDelay ()
 
float GetExplosionDistance ()
 
float GetShotDispersionAngle ()
 
string GetExplosionSoundSet ()
 
float GetExplosionDelay ()
 
void FireworksLauncherClientEvent (FireworksLauncher item, int index)
 
void ~FireworksLauncherClientEvent ()
 
void OnFired ()
 
vector GetShotPos ()
 
void CalculateExplosionPosition ()
 
vector GetExplosionPosition ()
 
int GetSecondaryExplosionCount ()
 
void OnExplode ()
 
void RequestSecondaryExplosion ()
 
void SpawnSecondaryExplosion ()
 
int GetSecondaryExplosionDelay ()
 
int GetExplParticleFromSequence ()
 
void SetupLight (PointLightBase light)
 
void SpawnLight ()
 
void PlayExplosionSound ()
 
- Private Attributes inherited from FireworksLauncherClientEvent
ref Timer m_Timer = new Timer()
 
FireworksLauncher m_Item
 
int m_Index
 
vector m_ExplosionPos
 
EffectSound m_FireSound
 
EffectSound m_ExplosionSound
 
ParticleSource m_ParticleShot
 
ParticleSource m_ParticleExplosion
 
vector m_ShotDir
 
ExplosionLight m_ExplosionLight
 
ParticleSource m_ParticleAfterBurnEnd
 
string m_Color
 
int m_RemainingExplosions = GetSecondaryExplosionCount()
 
ref array< ref FireworksLauncherClientEventBase > m_Events = new ref array<ref FireworksLauncherClientEventBase>
 

Detailed Description

Definition at line 1 of file FireworksLauncherAnniversary.c.

Member Function Documentation

◆ GetExplParticleFromSequence()

int AnniversaryFireworksLauncherClientEvent::GetExplParticleFromSequence ( )
inlineprotected

Definition at line 3 of file FireworksLauncherAnniversary.c.

4 {
5 switch (m_Color)
6 {
7 case "1":
9 case "2":
11 case "3":
13 case "4":
15 case "5":
17 default:
18 ErrorEx("Incorrect explosion particle color in the sequence");
19 }
21 }
static const int FIREWORKS_EXPLOSION_THANKS2
static const int FIREWORKS_EXPLOSION_THANKS4
static const int FIREWORKS_EXPLOSION_THANKS1
static const int FIREWORKS_EXPLOSION_RED
static const int FIREWORKS_EXPLOSION_THANKS5
static const int FIREWORKS_EXPLOSION_THANKS3
enum ShapeType ErrorEx

References ErrorEx, ParticleList::FIREWORKS_EXPLOSION_RED, ParticleList::FIREWORKS_EXPLOSION_THANKS1, ParticleList::FIREWORKS_EXPLOSION_THANKS2, ParticleList::FIREWORKS_EXPLOSION_THANKS3, ParticleList::FIREWORKS_EXPLOSION_THANKS4, ParticleList::FIREWORKS_EXPLOSION_THANKS5, and FireworksLauncherClientEvent::m_Color.

◆ SetupLight()

void AnniversaryFireworksLauncherClientEvent::SetupLight ( PointLightBase light)
inlineprotected

Definition at line 23 of file FireworksLauncherAnniversary.c.

24 {
25 switch (m_Color)
26 {
27 case "1":
28 light.SetDiffuseColor(255, 51, 51);
29 light.SetAmbientColor(255, 51, 51);
30
31 break;
32 case "2":
33 light.SetDiffuseColor(0, 255, 128);
34 light.SetAmbientColor(0, 255, 128);
35 break;
36 case "3":
37 light.SetDiffuseColor(51, 153, 255);
38 light.SetAmbientColor(51, 153, 255);
39 break;
40 case "4":
41 light.SetDiffuseColor(255, 255, 51);
42 light.SetAmbientColor(255, 255, 51);
43 break;
44 case "5":
45 light.SetDiffuseColor(255, 102, 255);
46 light.SetAmbientColor(255, 102, 255);
47 break;
48 default:
49 ErrorEx("Incorrect explosion particle color in the sequence");
50 }
51 }

References ErrorEx, and FireworksLauncherClientEvent::m_Color.

◆ SpawnSecondaryExplosion()


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