DayZ 1.24
Loading...
Searching...
No Matches
StuffedStomachMdfr Class Reference
Inheritance diagram for StuffedStomachMdfr:
[legend]
Collaboration diagram for StuffedStomachMdfr:
[legend]

Protected Member Functions

override void Init ()
 
override void OnTick (PlayerBase player, float deltaT)
 
override bool ActivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 

Protected Attributes

const int STUFFED_TRESHOLD = PlayerConstants.BT_STOMACH_VOLUME_LVL3
 

Detailed Description

Definition at line 1 of file StuffedStomach.c.

Member Function Documentation

◆ ActivateCondition()

override bool StuffedStomachMdfr::ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 17 of file StuffedStomach.c.

18 {
19 float stomach = player.m_PlayerStomach.GetStomachVolume();
21 return true;
22 else
23 return false;
24 }
const int STUFFED_TRESHOLD

References STUFFED_TRESHOLD.

Referenced by DeactivateCondition().

◆ DeactivateCondition()

override bool StuffedStomachMdfr::DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 38 of file StuffedStomach.c.

39 {
41 }
override bool ActivateCondition(PlayerBase player)

References ActivateCondition().

◆ Init()

override void StuffedStomachMdfr::Init ( )
inlineprotected

Definition at line 4 of file StuffedStomach.c.

5 {
7 m_ID = eModifiers.MDF_STUFFED;
10 }
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
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_ACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void StuffedStomachMdfr::OnActivate ( PlayerBase player)
inlineprotected

Definition at line 26 of file StuffedStomach.c.

27 {
28 if (player.GetNotifiersManager())
29 player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_STUFFED);
30 }
eNotifiers

◆ OnDeactivate()

override void StuffedStomachMdfr::OnDeactivate ( PlayerBase player)
inlineprotected

Definition at line 32 of file StuffedStomach.c.

33 {
34 if (player.GetNotifiersManager())
35 player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_STUFFED);
36 }

◆ OnTick()

override void StuffedStomachMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprotected

Definition at line 12 of file StuffedStomach.c.

13 {
14
15 }

Member Data Documentation

◆ STUFFED_TRESHOLD

const int StuffedStomachMdfr::STUFFED_TRESHOLD = PlayerConstants.BT_STOMACH_VOLUME_LVL3
protected

Definition at line 3 of file StuffedStomach.c.

Referenced by ActivateCondition().


The documentation for this class was generated from the following file: