Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
smokesimulation.c
Go to the documentation of this file.
1
class
SmokeSimulation
:
Managed
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
24
class
SmokeSimulation_Black
:
SmokeSimulation
25
{
26
void
SmokeSimulation_Black
()
27
{
28
particle_id
=
ParticleList
.GRENADE_M18_BLACK_LOOP;
29
}
30
}
31
class
SmokeSimulation_White
:
SmokeSimulation
32
{
33
void
SmokeSimulation_White
()
34
{
35
particle_id
=
ParticleList
.GRENADE_M18_WHITE_LOOP;
36
}
37
}
38
class
SmokeSimulation_Red
:
SmokeSimulation
39
{
40
void
SmokeSimulation_Red
()
41
{
42
particle_id
=
ParticleList
.GRENADE_M18_RED_LOOP;
43
}
44
}
45
class
SmokeSimulation_Green
:
SmokeSimulation
46
{
47
void
SmokeSimulation_Green
()
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
DAYZ
scripts_v1.24.157551
scripts
world
entities
firearms
smokesimulation.c
Generated by
1.8.17