Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
vomitstuffed.c
Go to the documentation of this file.
1
class
VomitStuffedMdfr
:
ModifierBase
2
{
3
override
void
Init()
4
{
5
m_TrackActivatedTime
=
false
;
6
m_ID
=
eModifiers
.MDF_VOMITSTUFFED;
7
m_TickIntervalInactive
=
DEFAULT_TICK_TIME_INACTIVE
;
8
m_TickIntervalActive
=
DEFAULT_TICK_TIME_ACTIVE
;
9
}
10
11
override
void
OnTick(
PlayerBase
player,
float
deltaT)
12
{
13
14
}
15
16
override
bool
ActivateCondition(
PlayerBase
player)
17
{
18
float
stomach =
m_Player
.m_PlayerStomach.GetStomachVolume();
19
if
( stomach >=
PlayerConstants
.VOMIT_THRESHOLD )
20
{
21
return
true
;
22
}
23
else
24
{
25
return
false
;
26
}
27
}
28
29
override
void
OnActivate(
PlayerBase
player)
30
{
31
player.GetSymptomManager().QueueUpPrimarySymptom( SymptomIDs.SYMPTOM_VOMIT );
32
}
33
34
35
override
bool
DeactivateCondition(
PlayerBase
player)
36
{
37
return
!ActivateCondition(player);
38
}
39
};
m_TickIntervalActive
float m_TickIntervalActive
Definition:
modifierbase.c:19
m_TrackActivatedTime
bool m_TrackActivatedTime
Definition:
modifierbase.c:15
VomitStuffedMdfr
Definition:
vomitstuffed.c:1
DEFAULT_TICK_TIME_ACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
Definition:
modifiersmanager.c:31
PlayerBase
Definition:
playerbaseclient.c:1
PlayerConstants
Definition:
playerconstants.c:1
m_Player
DayZPlayer m_Player
Definition:
hand_events.c:42
m_TickIntervalInactive
float m_TickIntervalInactive
Definition:
modifierbase.c:18
eModifiers
eModifiers
Definition:
emodifiers.c:1
ModifierBase
Definition:
breathvapourmdfr.c:3
m_ID
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition:
effect.c:49
DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_INACTIVE
Definition:
modifiersmanager.c:33
DAYZ
scripts_v1.24.157551
scripts
world
classes
playermodifiers
modifiers
conditions
vomitstuffed.c
Generated by
1.8.17