DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
WheelSmoke.c
См. документацию.
2{
3 const float WHEEL_SMOKE_THRESHOLD = 5.0;
4
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}
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Определения Effect.c:195
void SetParticleState(int state)
Определения WheelSmoke.c:26
const float WHEEL_SMOKE_THRESHOLD
Определения WheelSmoke.c:3
void EffWheelSmoke()
Определения WheelSmoke.c:5
void SetSurface(string surface)
Определения WheelSmoke.c:9
override void Stop()
Stops all elements this effect consists of.
Определения EffectParticle.c:204
override void Start()
Plays all elements this effect consists of.
Определения EffectParticle.c:181
void SetParticleID(int id)
Sets the id of the particle to be used.
Определения EffectParticle.c:303
void EffectParticle()
ctor
Определения EffectParticle.c:34
int m_ParticleID
The ID in the ParticleList to create Particle from.
Определения EffectParticle.c:14
static int GetWheelParticleID(string surface_name)
Определения Surface.c:8
Определения Surface.c:2