Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
vehiclesmoke.c
Go to the documentation of this file.
1
class
EffVehicleSmoke
:
EffectParticle
2
{
3
void
EffVehicleSmoke
()
4
{
5
SetParticleStateLight
();
6
}
7
8
9
void
SetParticleStateLight
()
10
{
11
SetParticleState
(
ParticleList
.
HATCHBACK_COOLANT_OVERHEATING
);
12
}
13
14
15
void
SetParticleStateHeavy
()
16
{
17
SetParticleState
(
ParticleList
.
HATCHBACK_COOLANT_OVERHEATED
);
18
}
19
20
void
SetParticleState
(
int
state )
21
{
22
bool
was_playing =
IsPlaying
();
23
24
Stop
();
25
26
SetParticleID
(state);
27
28
if
(was_playing)
29
{
30
Start
();
// resume effect
31
}
32
}
33
}
EffVehicleSmoke::SetParticleState
void SetParticleState(int state)
Definition
vehiclesmoke.c:20
EffVehicleSmoke::SetParticleStateHeavy
void SetParticleStateHeavy()
Definition
vehiclesmoke.c:15
EffVehicleSmoke::EffVehicleSmoke
void EffVehicleSmoke()
Definition
vehiclesmoke.c:3
EffVehicleSmoke::SetParticleStateLight
void SetParticleStateLight()
Definition
vehiclesmoke.c:9
EffectParticle::SetParticleID
void SetParticleID(int id)
Sets the id of the particle to be used.
Definition
effectparticle.c:303
EffectParticle::EffectParticle
void EffectParticle()
ctor
Definition
effectparticle.c:34
EffectParticle::Start
override void Start()
Plays all elements this effect consists of.
Definition
effectparticle.c:181
EffectParticle::Stop
override void Stop()
Stops all elements this effect consists of.
Definition
effectparticle.c:204
ParticleList
Definition
particlelist.c:12
ParticleList::HATCHBACK_COOLANT_OVERHEATED
static const int HATCHBACK_COOLANT_OVERHEATED
Definition
particlelist.c:281
ParticleList::HATCHBACK_COOLANT_OVERHEATING
static const int HATCHBACK_COOLANT_OVERHEATING
Definition
particlelist.c:280
IsPlaying
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Definition
effect.c:197
Games
Dayz
scripts
3_game
effects
effectparticle
vehiclesmoke.c
Generated by
1.17.0