Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
m18smokegrenade_colorbase.c
Go to the documentation of this file.
2{
3 const string SOUND_SMOKE_START = "SmokegGrenades_M18_start_loop_SoundSet";
4 const string SOUND_SMOKE_LOOP = "SmokegGrenades_M18_active_loop_SoundSet";
5 const string SOUND_SMOKE_END = "SmokegGrenades_M18_end_loop_SoundSet";
6
8 {
9 SetAmmoType("");
10 SetFuseDelay(2);
14 }
15
17}
18
20{
22 {
23 SetParticleSmokeStart(ParticleList.GRENADE_M18_RED_START);
24 SetParticleSmokeLoop(ParticleList.GRENADE_M18_RED_LOOP);
25 SetParticleSmokeEnd(ParticleList.GRENADE_M18_RED_END);
26 }
27}
28
29// Used for calling in dynamic contaminated areas
30class M18SmokeGrenade_Red_Contaminated extends M18SmokeGrenade_Red
31{
32 override void OnWorkStop()
33 {
34 super.OnWorkStop();
36 if ( GetGame().IsServer() )
37 GetCEApi().SpawnGroup( "ContaminatedArea_Dynamic", GetPosition() );
38 }
39}
40
42{
44 {
45 SetParticleSmokeStart(ParticleList.GRENADE_M18_GREEN_START);
46 SetParticleSmokeLoop(ParticleList.GRENADE_M18_GREEN_LOOP);
47 SetParticleSmokeEnd(ParticleList.GRENADE_M18_GREEN_END);
48 }
49}
50
52{
54 {
55 SetParticleSmokeStart(ParticleList.GRENADE_M18_YELLOW_START);
56 SetParticleSmokeLoop(ParticleList.GRENADE_M18_YELLOW_LOOP);
57 SetParticleSmokeEnd(ParticleList.GRENADE_M18_YELLOW_END);
58 }
59}
60
62{
64 {
65 SetParticleSmokeStart(ParticleList.GRENADE_M18_PURPLE_START);
66 SetParticleSmokeLoop(ParticleList.GRENADE_M18_PURPLE_LOOP);
67 SetParticleSmokeEnd(ParticleList.GRENADE_M18_PURPLE_END);
68 }
69}
70
71class M18SmokeGrenade_White extends M18SmokeGrenade_ColorBase
72{
73 void M18SmokeGrenade_White()
74 {
75 SetParticleSmokeStart(ParticleList.GRENADE_M18_WHITE_START);
76 SetParticleSmokeLoop(ParticleList.GRENADE_M18_WHITE_LOOP);
77 SetParticleSmokeEnd(ParticleList.GRENADE_M18_WHITE_END);
78 }
79}
void SetAmmoType(string pAmmoType)
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
const string SOUND_SMOKE_START
override void OnWorkStop()
const string SOUND_SMOKE_END
class M18SmokeGrenade_Red_Contaminated extends M18SmokeGrenade_Red M18SmokeGrenade_Green()
void M18SmokeGrenade_ColorBase()
void M18SmokeGrenade_Yellow()
class M18SmokeGrenade_ColorBase extends SmokeGrenadeBase M18SmokeGrenade_Red()
const string SOUND_SMOKE_LOOP
void ~M18SmokeGrenade_ColorBase()
class M18SmokeGrenade_Yellow extends M18SmokeGrenade_ColorBase M18SmokeGrenade_Purple()
void SetSoundSmokeEnd(string sound)
void SetParticleSmokeLoop(int particle)
void SetSoundSmokeStart(string sound)
void SetParticleSmokeEnd(int particle)
void SetSoundSmokeLoop(string sound)
void SetParticleSmokeStart(int particle)