File size: 966 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class SmokeSimulation : Managed
{
	protected Particle 			m_ParMainSmoke;
	int particle_id;
	
	void SmokeSimulation()
	{
		particle_id = ParticleList.GRENADE_M18_PURPLE_LOOP;
	}

	void OnFire( Entity flare)
	{
		m_ParMainSmoke = ParticleManager.GetInstance().PlayOnObject( particle_id, flare);
		m_ParMainSmoke.SetWiggle( 7, 0.3);
	}

	void ~SmokeSimulation()
	{
		if (m_ParMainSmoke)
			m_ParMainSmoke.Stop();
	}
}

class SmokeSimulation_Black : SmokeSimulation
{
	void SmokeSimulation_Black()
	{
		particle_id = ParticleList.GRENADE_M18_BLACK_LOOP;
	}
}
class SmokeSimulation_White : SmokeSimulation
{
	void SmokeSimulation_White()
	{
		particle_id = ParticleList.GRENADE_M18_WHITE_LOOP;
	}
}
class SmokeSimulation_Red : SmokeSimulation
{
	void SmokeSimulation_Red()
	{
		particle_id = ParticleList.GRENADE_M18_RED_LOOP;
	}
}
class SmokeSimulation_Green : SmokeSimulation
{
	void SmokeSimulation_Green()
	{
		particle_id = ParticleList.GRENADE_M18_GREEN_LOOP;
	}
}