D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
486 Bytes
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
}
}
}