DayZ 1.24
Loading...
Searching...
No Matches
StuffedStomach.c
Go to the documentation of this file.
2{
4 override void Init()
5 {
7 m_ID = eModifiers.MDF_STUFFED;
10 }
11
12 override void OnTick(PlayerBase player, float deltaT)
13 {
14
15 }
16
18 {
19 float stomach = player.m_PlayerStomach.GetStomachVolume();
21 return true;
22 else
23 return false;
24 }
25
27 {
28 if (player.GetNotifiersManager())
29 player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_STUFFED);
30 }
31
33 {
34 if (player.GetNotifiersManager())
35 player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_STUFFED);
36 }
37
39 {
41 }
42
43};
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_ACTIVE
eNotifiers
static const int BT_STOMACH_VOLUME_LVL3
override void OnDeactivate(PlayerBase player)
override void OnActivate(PlayerBase player)
override void Init()
override bool DeactivateCondition(PlayerBase player)
const int STUFFED_TRESHOLD
override bool ActivateCondition(PlayerBase player)
override void OnTick(PlayerBase player, float deltaT)
eModifiers
Definition eModifiers.c:2