Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
m18smokegrenade_colorbase.c
Go to the documentation of this file.
1
class
M18SmokeGrenade_ColorBase
extends
SmokeGrenadeBase
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
7
void
M18SmokeGrenade_ColorBase
()
8
{
9
SetAmmoType
(
""
);
10
SetFuseDelay(2);
11
SetSoundSmokeStart
(
SOUND_SMOKE_START
);
12
SetSoundSmokeLoop
(
SOUND_SMOKE_LOOP
);
13
SetSoundSmokeEnd
(
SOUND_SMOKE_END
);
14
}
15
16
void
~M18SmokeGrenade_ColorBase
() {}
17
}
18
19
class
M18SmokeGrenade_Red
extends
M18SmokeGrenade_ColorBase
20
{
21
void
M18SmokeGrenade_Red
()
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
(
g_Game
.IsServer() )
37
GetCEApi
().SpawnGroup(
"ContaminatedArea_Dynamic"
,
GetPosition
() );
38
}
39
}
40
41
class
M18SmokeGrenade_Green
extends
M18SmokeGrenade_ColorBase
42
{
43
void
M18SmokeGrenade_Green
()
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
51
class
M18SmokeGrenade_Yellow
extends
M18SmokeGrenade_ColorBase
52
{
53
void
M18SmokeGrenade_Yellow
()
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
61
class
M18SmokeGrenade_Purple
extends
M18SmokeGrenade_ColorBase
62
{
63
void
M18SmokeGrenade_Purple
()
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
}
GetCEApi
proto native CEApi GetCEApi()
Get the CE API.
M18SmokeGrenade_ColorBase
Definition
m18smokegrenade_colorbase.c:52
M18SmokeGrenade_ColorBase::M18SmokeGrenade_White
void M18SmokeGrenade_White()
Definition
m18smokegrenade_colorbase.c:73
M18SmokeGrenade_ColorBase::M18SmokeGrenade_Yellow
void M18SmokeGrenade_Yellow()
Definition
m18smokegrenade_colorbase.c:53
M18SmokeGrenade_Red
Definition
m18smokegrenade_colorbase.c:31
M18SmokeGrenade_Red::OnWorkStop
override void OnWorkStop()
Definition
m18smokegrenade_colorbase.c:32
ParticleList
Definition
particlelist.c:12
ParticleList::GRENADE_M18_PURPLE_END
static const int GRENADE_M18_PURPLE_END
Definition
particlelist.c:113
ParticleList::GRENADE_M18_RED_START
static const int GRENADE_M18_RED_START
Definition
particlelist.c:114
ParticleList::GRENADE_M18_YELLOW_END
static const int GRENADE_M18_YELLOW_END
Definition
particlelist.c:122
ParticleList::GRENADE_M18_RED_END
static const int GRENADE_M18_RED_END
Definition
particlelist.c:116
ParticleList::GRENADE_M18_WHITE_LOOP
static const int GRENADE_M18_WHITE_LOOP
Definition
particlelist.c:118
ParticleList::GRENADE_M18_PURPLE_START
static const int GRENADE_M18_PURPLE_START
Definition
particlelist.c:111
ParticleList::GRENADE_M18_RED_LOOP
static const int GRENADE_M18_RED_LOOP
Definition
particlelist.c:115
ParticleList::GRENADE_M18_GREEN_LOOP
static const int GRENADE_M18_GREEN_LOOP
Definition
particlelist.c:109
ParticleList::GRENADE_M18_GREEN_START
static const int GRENADE_M18_GREEN_START
M18.
Definition
particlelist.c:108
ParticleList::GRENADE_M18_YELLOW_LOOP
static const int GRENADE_M18_YELLOW_LOOP
Definition
particlelist.c:121
ParticleList::GRENADE_M18_WHITE_END
static const int GRENADE_M18_WHITE_END
Definition
particlelist.c:119
ParticleList::GRENADE_M18_YELLOW_START
static const int GRENADE_M18_YELLOW_START
Definition
particlelist.c:120
ParticleList::GRENADE_M18_WHITE_START
static const int GRENADE_M18_WHITE_START
Definition
particlelist.c:117
ParticleList::GRENADE_M18_GREEN_END
static const int GRENADE_M18_GREEN_END
Definition
particlelist.c:110
ParticleList::GRENADE_M18_PURPLE_LOOP
static const int GRENADE_M18_PURPLE_LOOP
Definition
particlelist.c:112
SmokeGrenadeBase
Definition
m18smokegrenade_colorbase.c:2
SmokeGrenadeBase::SOUND_SMOKE_START
const string SOUND_SMOKE_START
Definition
m18smokegrenade_colorbase.c:3
SmokeGrenadeBase::SOUND_SMOKE_END
const string SOUND_SMOKE_END
Definition
m18smokegrenade_colorbase.c:5
SmokeGrenadeBase::~M18SmokeGrenade_ColorBase
void ~M18SmokeGrenade_ColorBase()
Definition
m18smokegrenade_colorbase.c:16
SmokeGrenadeBase::M18SmokeGrenade_ColorBase
void M18SmokeGrenade_ColorBase()
Definition
m18smokegrenade_colorbase.c:7
SmokeGrenadeBase::SOUND_SMOKE_LOOP
const string SOUND_SMOKE_LOOP
Definition
m18smokegrenade_colorbase.c:4
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
SetAmmoType
void SetAmmoType(string pAmmoType)
Definition
explosivesbase.c:321
GetPosition
vector GetPosition()
Get the world position of the Effect.
Definition
effect.c:473
M18SmokeGrenade_Green
class M18SmokeGrenade_Red_Contaminated extends M18SmokeGrenade_Red M18SmokeGrenade_Green()
Definition
m18smokegrenade_colorbase.c:43
M18SmokeGrenade_Red
class M18SmokeGrenade_ColorBase extends SmokeGrenadeBase M18SmokeGrenade_Red()
Definition
m18smokegrenade_colorbase.c:21
M18SmokeGrenade_Purple
class M18SmokeGrenade_Yellow extends M18SmokeGrenade_ColorBase M18SmokeGrenade_Purple()
Definition
m18smokegrenade_colorbase.c:63
SetSoundSmokeEnd
void SetSoundSmokeEnd(string sound)
Definition
smokegrenadebase.c:69
SetParticleSmokeLoop
void SetParticleSmokeLoop(int particle)
Definition
smokegrenadebase.c:49
SetSoundSmokeStart
void SetSoundSmokeStart(string sound)
Definition
smokegrenadebase.c:59
SetParticleSmokeEnd
void SetParticleSmokeEnd(int particle)
Definition
smokegrenadebase.c:54
SetSoundSmokeLoop
void SetSoundSmokeLoop(string sound)
Definition
smokegrenadebase.c:64
SetParticleSmokeStart
void SetParticleSmokeStart(int particle)
Definition
smokegrenadebase.c:44
Games
Dayz
scripts
4_world
entities
grenade_base
m18smokegrenade_colorbase.c
Generated by
1.17.0