Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
smokesimulation.c
Go to the documentation of this file.
2 {
3  protected Particle m_ParMainSmoke;
4  int particle_id;
5 
6  void SmokeSimulation()
7  {
8  particle_id = ParticleList.GRENADE_M18_PURPLE_LOOP;
9  }
10 
11  void OnFire( Entity flare)
12  {
13  m_ParMainSmoke = ParticleManager.GetInstance().PlayOnObject( particle_id, flare);
14  m_ParMainSmoke.SetWiggle( 7, 0.3);
15  }
16 
17  void ~SmokeSimulation()
18  {
19  if (m_ParMainSmoke)
20  m_ParMainSmoke.Stop();
21  }
22 }
23 
25 {
27  {
28  particle_id = ParticleList.GRENADE_M18_BLACK_LOOP;
29  }
30 }
32 {
34  {
35  particle_id = ParticleList.GRENADE_M18_WHITE_LOOP;
36  }
37 }
39 {
41  {
42  particle_id = ParticleList.GRENADE_M18_RED_LOOP;
43  }
44 }
46 {
48  {
49  particle_id = ParticleList.GRENADE_M18_GREEN_LOOP;
50  }
51 }
particle_id
int particle_id
Definition: smokesimulation.c:3
Particle
Legacy way of using particles in the game.
Definition: particle.c:6
Managed
TODO doc.
Definition: enscript.c:117
SmokeSimulation
Definition: smokesimulation.c:1
SmokeSimulation_White
Definition: smokesimulation.c:31
SmokeSimulation_Green
Definition: smokesimulation.c:45
SmokeSimulation_Black
SmokeSimulation Managed SmokeSimulation_Black()
Definition: smokesimulation.c:26
m_ParMainSmoke
protected Particle m_ParMainSmoke
Definition: smokesimulation.c:2
ParticleList
Definition: particlelist.c:11
Entity
Definition: camera.c:1
ParticleManager
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition: particlemanager.c:84
SmokeSimulation_Red
SmokeSimulation_White SmokeSimulation SmokeSimulation_Red()
Definition: smokesimulation.c:40