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

Enumerations

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

Functions

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

Variables

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

Enumeration Type Documentation

◆ ESmokeGrenadeState

Enumerator
NO_SMOKE 
LOOP 
END 
COUNT 

Function Documentation

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI  parent)

◆ DestroySmokeGrenade()

protected void DestroySmokeGrenade ( )

◆ EEDelete()

override void EEDelete ( EntityAI  parent)

◆ GetSmokeGrenadeState()

ESmokeGrenadeState GetSmokeGrenadeState ( )

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase  item)

Called when this item is activated by other.

◆ OnActivateFinished()

override void OnActivateFinished ( )

◆ OnExplosionEffects()

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

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

◆ OnWork()

◆ OnWorkStart()

◆ OnWorkStop()

override void OnWorkStop ( )

defer timer

References m_TimerDefer, and SetSmokeGrenadeState().

◆ PlaySmokeParticle()

protected void PlaySmokeParticle ( )

◆ RefreshParticlesAndSounds()

◆ SetActions()

override void SetActions ( )

References RemoveAction().

◆ SetParticleSmokeCurrent()

void SetParticleSmokeCurrent ( int  particle)

◆ SetParticleSmokeEnd()

◆ SetParticleSmokeLoop()

◆ SetParticleSmokeStart()

◆ SetSmokeGrenadeState()

void SetSmokeGrenadeState ( ESmokeGrenadeState  state)

◆ SetSoundSmokeEnd()

◆ SetSoundSmokeLoop()

◆ SetSoundSmokeStart()

◆ SmokeGrenadeBase()

◆ SoundSmokeEnd()

protected void SoundSmokeEnd ( )

◆ SoundSmokeLoop()

protected void SoundSmokeLoop ( )

◆ SoundSmokeStart()

protected void SoundSmokeStart ( )

◆ SoundSmokeStop()

protected void SoundSmokeStop ( )

References m_SoundSmoke.

Referenced by EEDelete(), and RefreshParticlesAndSounds().

◆ Unpin()

override void Unpin ( )

References Activate().

◆ ~SmokeGrenadeBase()

void ~SmokeGrenadeBase ( )

Variable Documentation

◆ m_LastSmokeGrenadeState

protected ESmokeGrenadeState m_LastSmokeGrenadeState

◆ m_NoisePar

ref NoiseParams m_NoisePar

Noise.

◆ m_ParticleSmoke

◆ m_ParticleSmokeCurrentId

protected int m_ParticleSmokeCurrentId

◆ m_ParticleSmokeEndId

protected int m_ParticleSmokeEndId

◆ m_ParticleSmokeLoopId

protected int m_ParticleSmokeLoopId

◆ m_ParticleSmokePosition

protected vector m_ParticleSmokePosition

◆ m_ParticleSmokeStartId

protected int m_ParticleSmokeStartId

◆ m_SmokeGrenadeState

protected ESmokeGrenadeState m_SmokeGrenadeState

◆ m_SoundSmoke

protected EffectSound m_SoundSmoke

◆ m_SoundSmokeEndId

protected string m_SoundSmokeEndId

Referenced by SetSoundSmokeEnd(), and SoundSmokeEnd().

◆ m_SoundSmokeLoopId

protected string m_SoundSmokeLoopId

◆ m_SoundSmokeStartId

protected string m_SoundSmokeStartId

◆ m_TimerDefer

protected ref Timer m_TimerDefer

Referenced by OnWorkStop(), and SmokeGrenadeBase().

◆ m_TimerSmokeEnd

protected ref Timer m_TimerSmokeEnd

◆ m_TimerSmokeLoop

protected ref Timer m_TimerSmokeLoop

Referenced by OnWorkStart(), and SmokeGrenadeBase().

◆ m_TimerSmokeStart

enum ESmokeGrenadeState m_TimerSmokeStart