File size: 486 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
		}
	}
}