DayZ
1.24
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
(
GetGame
().IsServer())
16
{
17
if
(
newLevel
==
GameConstants
.
STATE_RUINED
)
18
SetQuantity
(0);
19
}
20
}
21
}
SetQuantity
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:7838
GameConstants
Definition
constants.c:612
MaskBase
Definition
AirborneMask.c:2
MaskBase::GetVoiceEffect
override int GetVoiceEffect()
Definition
GasMask.c:8
MaskBase::IsObstructingVoice
override bool IsObstructingVoice()
Definition
GasMask.c:3
MaskBase::EEHealthLevelChanged
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
Definition
GasMask.c:13
Param3
Definition
EntityAI.c:95
GetGame
proto native CGame GetGame()
GameConstants::STATE_RUINED
const int STATE_RUINED
Definition
constants.c:757
scripts
4_World
Entities
ItemBase
Clothing
GasMask.c
Generated by
1.10.0