123456789101112131415161718192021222324252627282930313233 |
- class EffVehicleSmoke : EffectParticle
- {
- void EffVehicleSmoke()
- {
- SetParticleStateLight();
- }
-
-
- void SetParticleStateLight()
- {
- SetParticleState( ParticleList.HATCHBACK_COOLANT_OVERHEATING );
- }
-
-
- void SetParticleStateHeavy()
- {
- SetParticleState( ParticleList.HATCHBACK_COOLANT_OVERHEATED );
- }
-
- void SetParticleState( int state )
- {
- bool was_playing = IsPlaying();
-
- Stop();
-
- SetParticleID(state);
-
- if (was_playing)
- {
- Start(); // resume effect
- }
- }
- }
|