Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
wheelsmoke.c
Go to the documentation of this file.
2{
3 const float WHEEL_SMOKE_THRESHOLD = 5.0;
4
5 void EffWheelSmoke()
6 {
7 }
8
9 void SetSurface(string surface)
10 {
11 int particleID = Surface.GetWheelParticleID(surface);
12
13 if (m_ParticleID != particleID)
14 {
15 if (particleID != 0)
16 {
17 SetParticleState(particleID);
18 }
19 else
20 {
21 Stop();
22 }
23 }
24 }
25
26 void SetParticleState( int state )
27 {
28 bool was_playing = IsPlaying();
29
30 Stop();
31
32 SetParticleID(state);
33
34 if (was_playing)
35 {
36 Start(); // resume effect
37 }
38 }
39}
Wrapper class for managing particles through SEffectManager.
override void Stop()
Stops all elements this effect consists of.
override void Start()
Plays all elements this effect consists of.
void SetParticleID(int id)
Sets the id of the particle to be used.
int m_ParticleID
The ID in the ParticleList to create Particle from.
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Definition effect.c:197