Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
gasmask.c
Go to the documentation of this file.
1
class
GasMask
extends
MaskBase
2
{
3
override
bool
IsObstructingVoice
()
4
{
5
return
true
;
6
}
7
8
override
int
GetVoiceEffect
()
9
{
10
return
VoiceEffectObstruction;
11
}
12
13
override
void
EEHealthLevelChanged
(
int
oldLevel,
int
newLevel,
string
zone)
14
{
15
if
(
g_Game
.IsServer())
16
{
17
if
( newLevel ==
GameConstants
.
STATE_RUINED
)
18
{
19
SetQuantity
(0);
20
}
21
}
22
}
23
}
GameConstants
Definition
constants.c:664
MaskBase
Definition
airbornemask.c:2
MaskBase::EEHealthLevelChanged
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
Definition
gasmask.c:13
MaskBase::IsObstructingVoice
override bool IsObstructingVoice()
Definition
gasmask.c:3
MaskBase::GetVoiceEffect
override int GetVoiceEffect()
Definition
gasmask.c:8
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
GameConstants::STATE_RUINED
const int STATE_RUINED
Definition
constants.c:851
SetQuantity
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition
itembase.c:8230
Games
Dayz
scripts
4_world
entities
itembase
clothing
gasmask.c
Generated by
1.17.0