Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
smokegrenadebase.c File Reference

Go to the source code of this file.

Enumerations

enum  ESmokeGrenadeState { NO_SMOKE , LOOP = 2 , END = 3 , COUNT = 4 }

Functions

void ~SmokeGrenadeBase ()
override bool CanPutInCargo (EntityAI parent)
void DestroySmokeGrenade ()
override void EEDelete (EntityAI parent)
ESmokeGrenadeState GetSmokeGrenadeState ()
override void OnActivatedByItem (notnull ItemBase item)
 Called when this item is activated by other.
override void OnActivateFinished ()
override void OnExplosionEffects (Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
override void OnVariablesSynchronized ()
override void OnWork (float consumed_energy)
override void OnWorkStart ()
override void OnWorkStop ()
void PlaySmokeParticle ()
void RefreshParticlesAndSounds ()
override void SetActions ()
void SetParticleSmokeCurrent (int particle)
void SetParticleSmokeEnd (int particle)
void SetParticleSmokeLoop (int particle)
void SetParticleSmokeStart (int particle)
void SetSmokeGrenadeState (ESmokeGrenadeState state)
void SetSoundSmokeEnd (string sound)
void SetSoundSmokeLoop (string sound)
void SetSoundSmokeStart (string sound)
void SmokeGrenadeBase ()
void SoundSmokeEnd ()
void SoundSmokeLoop ()
void SoundSmokeStart ()
void SoundSmokeStop ()
override void Unpin ()

Variables

ESmokeGrenadeState m_LastSmokeGrenadeState
ref NoiseParams m_NoisePar
 Noise.
Particle m_ParticleSmoke
 particle
int m_ParticleSmokeCurrentId
int m_ParticleSmokeEndId
int m_ParticleSmokeLoopId
vector m_ParticleSmokePosition
int m_ParticleSmokeStartId
ESmokeGrenadeState m_SmokeGrenadeState
EffectSound m_SoundSmoke
 sounds
string m_SoundSmokeEndId
string m_SoundSmokeLoopId
string m_SoundSmokeStartId
ref Timer m_TimerDefer
ref Timer m_TimerSmokeEnd
ref Timer m_TimerSmokeLoop
enum ESmokeGrenadeState m_TimerSmokeStart

Enumeration Type Documentation

◆ ESmokeGrenadeState

Enumerator
NO_SMOKE 
LOOP 
END 
COUNT 

Definition at line 1 of file smokegrenadebase.c.

Function Documentation

◆ ~SmokeGrenadeBase()

void ~SmokeGrenadeBase ( )
protected

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
protected

Definition at line 216 of file smokegrenadebase.c.

◆ DestroySmokeGrenade()

void DestroySmokeGrenade ( )
protected

Definition at line 100 of file smokegrenadebase.c.

References g_Game, and SetSmokeGrenadeState().

◆ EEDelete()

override void EEDelete ( EntityAI parent)
protected

Definition at line 247 of file smokegrenadebase.c.

References DestroyParticle(), m_ParticleSmoke, and SoundSmokeStop().

◆ GetSmokeGrenadeState()

ESmokeGrenadeState GetSmokeGrenadeState ( )
protected

Definition at line 242 of file smokegrenadebase.c.

References m_SmokeGrenadeState.

Referenced by RefreshParticlesAndSounds().

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
protected

Called when this item is activated by other.

Definition at line 221 of file smokegrenadebase.c.

◆ OnActivateFinished()

override void OnActivateFinished ( )
protected

Definition at line 166 of file smokegrenadebase.c.

◆ OnExplosionEffects()

override void OnExplosionEffects ( Object source,
Object directHit,
int componentIndex,
string surface,
vector pos,
vector surfNormal,
float energyFactor,
float explosionFactor,
bool isWater,
string ammoType )
protected

Definition at line 240 of file smokegrenadebase.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 233 of file smokegrenadebase.c.

References RefreshParticlesAndSounds().

◆ OnWork()

override void OnWork ( float consumed_energy)
protected

◆ OnWorkStart()

◆ OnWorkStop()

override void OnWorkStop ( )
protected

defer timer

Definition at line 208 of file smokegrenadebase.c.

References m_TimerDefer, and SetSmokeGrenadeState().

◆ PlaySmokeParticle()

void PlaySmokeParticle ( )
protected

◆ RefreshParticlesAndSounds()

◆ SetActions()

override void SetActions ( )
protected

Definition at line 226 of file smokegrenadebase.c.

References RemoveAction().

◆ SetParticleSmokeCurrent()

void SetParticleSmokeCurrent ( int particle)
protected

Definition at line 39 of file smokegrenadebase.c.

References m_ParticleSmokeCurrentId.

Referenced by RefreshParticlesAndSounds().

◆ SetParticleSmokeEnd()

◆ SetParticleSmokeLoop()

◆ SetParticleSmokeStart()

◆ SetSmokeGrenadeState()

void SetSmokeGrenadeState ( ESmokeGrenadeState state)
protected

Definition at line 255 of file smokegrenadebase.c.

References g_Game, and m_SmokeGrenadeState.

Referenced by DestroySmokeGrenade(), OnWorkStart(), and OnWorkStop().

◆ SetSoundSmokeEnd()

void SetSoundSmokeEnd ( string sound)
protected

◆ SetSoundSmokeLoop()

void SetSoundSmokeLoop ( string sound)
protected

◆ SetSoundSmokeStart()

void SetSoundSmokeStart ( string sound)
protected

◆ SmokeGrenadeBase()

void SmokeGrenadeBase ( )
protected

no effect on base

no effect on base

no effect on base

Definition at line 271 of file smokegrenadebase.c.

References ParticleList::INVALID, m_SmokeGrenadeState, m_TimerDefer, m_TimerSmokeLoop, SetAmmoType(), SetParticleSmokeEnd(), SetParticleSmokeLoop(), and SetParticleSmokeStart().

◆ SoundSmokeEnd()

void SoundSmokeEnd ( )
protected

Definition at line 89 of file smokegrenadebase.c.

References m_SoundSmoke, and m_SoundSmokeEndId.

Referenced by RefreshParticlesAndSounds().

◆ SoundSmokeLoop()

void SoundSmokeLoop ( )
protected

Definition at line 84 of file smokegrenadebase.c.

References m_SoundSmoke, and m_SoundSmokeLoopId.

Referenced by RefreshParticlesAndSounds().

◆ SoundSmokeStart()

void SoundSmokeStart ( )
protected

Definition at line 79 of file smokegrenadebase.c.

References m_SoundSmoke, and m_SoundSmokeStartId.

Referenced by RefreshParticlesAndSounds().

◆ SoundSmokeStop()

void SoundSmokeStop ( )
protected

Definition at line 95 of file smokegrenadebase.c.

References m_SoundSmoke.

Referenced by EEDelete(), and RefreshParticlesAndSounds().

◆ Unpin()

override void Unpin ( )
protected

Definition at line 158 of file smokegrenadebase.c.

References Activate().

Variable Documentation

◆ m_LastSmokeGrenadeState

ESmokeGrenadeState m_LastSmokeGrenadeState
protected

Definition at line 20 of file smokegrenadebase.c.

Referenced by RefreshParticlesAndSounds().

◆ m_NoisePar

ref NoiseParams m_NoisePar
protected

Noise.

Definition at line 37 of file smokegrenadebase.c.

◆ m_ParticleSmoke

Particle m_ParticleSmoke
protected

particle

Definition at line 23 of file smokegrenadebase.c.

Referenced by EEDelete(), PlaySmokeParticle(), and RefreshParticlesAndSounds().

◆ m_ParticleSmokeCurrentId

int m_ParticleSmokeCurrentId
protected

Definition at line 24 of file smokegrenadebase.c.

Referenced by PlaySmokeParticle(), and SetParticleSmokeCurrent().

◆ m_ParticleSmokeEndId

int m_ParticleSmokeEndId
protected

Definition at line 27 of file smokegrenadebase.c.

Referenced by RefreshParticlesAndSounds(), and SetParticleSmokeEnd().

◆ m_ParticleSmokeLoopId

int m_ParticleSmokeLoopId
protected

Definition at line 26 of file smokegrenadebase.c.

Referenced by RefreshParticlesAndSounds(), and SetParticleSmokeLoop().

◆ m_ParticleSmokePosition

vector m_ParticleSmokePosition
protected

Definition at line 28 of file smokegrenadebase.c.

◆ m_ParticleSmokeStartId

int m_ParticleSmokeStartId
protected

Definition at line 25 of file smokegrenadebase.c.

Referenced by RefreshParticlesAndSounds(), and SetParticleSmokeStart().

◆ m_SmokeGrenadeState

ESmokeGrenadeState m_SmokeGrenadeState
protected

Definition at line 19 of file smokegrenadebase.c.

Referenced by GetSmokeGrenadeState(), SetSmokeGrenadeState(), and SmokeGrenadeBase().

◆ m_SoundSmoke

EffectSound m_SoundSmoke
protected

sounds

Definition at line 31 of file smokegrenadebase.c.

Referenced by SoundSmokeEnd(), SoundSmokeLoop(), SoundSmokeStart(), and SoundSmokeStop().

◆ m_SoundSmokeEndId

string m_SoundSmokeEndId
protected

Definition at line 34 of file smokegrenadebase.c.

Referenced by SetSoundSmokeEnd(), and SoundSmokeEnd().

◆ m_SoundSmokeLoopId

string m_SoundSmokeLoopId
protected

Definition at line 33 of file smokegrenadebase.c.

Referenced by SetSoundSmokeLoop(), and SoundSmokeLoop().

◆ m_SoundSmokeStartId

string m_SoundSmokeStartId
protected

Definition at line 32 of file smokegrenadebase.c.

Referenced by SetSoundSmokeStart(), and SoundSmokeStart().

◆ m_TimerDefer

ref Timer m_TimerDefer
protected

Definition at line 17 of file smokegrenadebase.c.

Referenced by OnWorkStop(), and SmokeGrenadeBase().

◆ m_TimerSmokeEnd

ref Timer m_TimerSmokeEnd
protected

Definition at line 15 of file smokegrenadebase.c.

◆ m_TimerSmokeLoop

ref Timer m_TimerSmokeLoop
protected

Definition at line 14 of file smokegrenadebase.c.

Referenced by OnWorkStart(), and SmokeGrenadeBase().

◆ m_TimerSmokeStart

enum ESmokeGrenadeState m_TimerSmokeStart