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

Protected Member Functions

void SetupColorSequences ()
 
FireworksLauncherClientEventBase SpawnEvent ()
 
override bool IsTakeable ()
 
override bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
 
override bool DisableVicinityIcon ()
 
int GetMaxShots ()
 
float GetFuseDelay ()
 
void OnEventServer (int type)
 Called periodically but only after the entity gets ignited.
 

Private Attributes

int sequence = 0
 

Additional Inherited Members

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

Detailed Description

Definition at line 98 of file FireworksLauncherAnniversary.c.

Member Function Documentation

◆ CanSwapEntities()

override bool Anniversary_FireworksLauncher::CanSwapEntities ( EntityAI otherItem,
InventoryLocation otherDestination,
InventoryLocation destination )
inlineprotected

Definition at line 119 of file FireworksLauncherAnniversary.c.

120 {
121 return false;
122 }

◆ DisableVicinityIcon()

override bool Anniversary_FireworksLauncher::DisableVicinityIcon ( )
inlineprotected

Definition at line 124 of file FireworksLauncherAnniversary.c.

125 {
126 return true;
127 }

◆ GetFuseDelay()

float Anniversary_FireworksLauncher::GetFuseDelay ( )
inlineprotected

Definition at line 134 of file FireworksLauncherAnniversary.c.

135 {
136 return 1;
137 }

◆ GetMaxShots()

int Anniversary_FireworksLauncher::GetMaxShots ( )
inlineprotected

Definition at line 129 of file FireworksLauncherAnniversary.c.

130 {
131 return 25;
132 }

Referenced by OnEventServer().

◆ IsTakeable()

override bool Anniversary_FireworksLauncher::IsTakeable ( )
inlineprotected

Definition at line 114 of file FireworksLauncherAnniversary.c.

115 {
116 return false;
117 }

◆ OnEventServer()

void Anniversary_FireworksLauncher::OnEventServer ( int type)
inlineprotected

Called periodically but only after the entity gets ignited.

Definition at line 140 of file FireworksLauncherAnniversary.c.

141 {
142 m_Index++;
143 DamageSystem.ExplosionDamage(this, NULL, GetAmmoType(), GetPosition(), GetDamageType());
144
145 if (m_Index > 16)
146 {
147 sequence++;
148 m_Index = 1;
149 }
150
151 SetSynchDirty();
152 if (m_Index + (sequence * 16) > GetMaxShots())
153 {
156 SetState(EFireworksState.FINISHED);
157 }
158 else
160 }
ref Timer m_TimerEvent
EFireworksState
void SetState(bool state)
class JsonUndergroundAreaTriggerData GetPosition
void RestartEventTimer()
Starts event timer.

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

◆ SetupColorSequences()

void Anniversary_FireworksLauncher::SetupColorSequences ( )
inlineprotected

Definition at line 102 of file FireworksLauncherAnniversary.c.

103 {
104 m_ColorSequence.Insert("1234512345123451234512345");
105 }
ref array< string > m_ColorSequence

References FireworksLauncher::m_ColorSequence.

◆ SpawnEvent()

FireworksLauncherClientEventBase Anniversary_FireworksLauncher::SpawnEvent ( )
inlineprotected

Definition at line 107 of file FireworksLauncherAnniversary.c.

108 {
109 FireworksLauncherClientEventBase evnt = new AnniversaryFireworksLauncherClientEvent(this, m_Index);
110 evnt.OnFired();
111 return evnt;
112 }

References FireworksLauncher::m_Index.

Member Data Documentation

◆ sequence

int Anniversary_FireworksLauncher::sequence = 0
private

Definition at line 100 of file FireworksLauncherAnniversary.c.

Referenced by OnEventServer().


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