Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
30 class M18SmokeGrenade_Red_Contaminated extends M18SmokeGrenade_Red
31 {
32  override void OnWorkStop()
33  {
34  super.OnWorkStop();
35 
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 
71 class 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 }
GetGame
proto native CGame GetGame()
SetSoundSmokeEnd
void SetSoundSmokeEnd(string sound)
Definition: smokegrenadebase.c:69
M18SmokeGrenade_Yellow
void M18SmokeGrenade_Yellow()
Definition: m18smokegrenade_colorbase.c:2
M18SmokeGrenade_Purple
class M18SmokeGrenade_Yellow extends M18SmokeGrenade_ColorBase M18SmokeGrenade_Purple()
Definition: m18smokegrenade_colorbase.c:63
SOUND_SMOKE_LOOP
const string SOUND_SMOKE_LOOP
Definition: m18smokegrenade_colorbase.c:3
OnWorkStop
override void OnWorkStop()
Definition: m18smokegrenade_colorbase.c:2
SetSoundSmokeLoop
void SetSoundSmokeLoop(string sound)
Definition: smokegrenadebase.c:64
M18SmokeGrenade_Red
class M18SmokeGrenade_ColorBase extends SmokeGrenadeBase M18SmokeGrenade_Red()
Definition: m18smokegrenade_colorbase.c:21
M18SmokeGrenade_ColorBase
Definition: m18smokegrenade_colorbase.c:51
GetPosition
class JsonUndergroundAreaTriggerData GetPosition
Definition: undergroundarealoader.c:9
ParticleList
Definition: particlelist.c:11
SOUND_SMOKE_START
const string SOUND_SMOKE_START
Definition: m18smokegrenade_colorbase.c:2
SetParticleSmokeEnd
void SetParticleSmokeEnd(int particle)
Definition: smokegrenadebase.c:54
M18SmokeGrenade_ColorBase
void M18SmokeGrenade_ColorBase()
Definition: m18smokegrenade_colorbase.c:6
SmokeGrenadeBase
Definition: m18smokegrenade_colorbase.c:1
SetParticleSmokeLoop
void SetParticleSmokeLoop(int particle)
Definition: smokegrenadebase.c:49
SetSoundSmokeStart
void SetSoundSmokeStart(string sound)
Definition: smokegrenadebase.c:59
SetParticleSmokeStart
void SetParticleSmokeStart(int particle)
Definition: smokegrenadebase.c:44
M18SmokeGrenade_Red
Definition: m18smokegrenade_colorbase.c:30
SetAmmoType
void SetAmmoType(string pAmmoType)
Definition: explosivesbase.c:283
M18SmokeGrenade_Green
class M18SmokeGrenade_Red_Contaminated extends M18SmokeGrenade_Red M18SmokeGrenade_Green()
Definition: m18smokegrenade_colorbase.c:43
SOUND_SMOKE_END
const string SOUND_SMOKE_END
Definition: m18smokegrenade_colorbase.c:4
GetCEApi
proto native CEApi GetCEApi()
Get the CE API.
~M18SmokeGrenade_ColorBase
void ~M18SmokeGrenade_ColorBase()
Definition: m18smokegrenade_colorbase.c:15