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

Private Member Functions

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

Detailed Description

Definition at line 1 of file VomitStuffed.c.

Member Function Documentation

◆ ActivateCondition()

override bool VomitStuffedMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 16 of file VomitStuffed.c.

17 {
18 float stomach = m_Player.m_PlayerStomach.GetStomachVolume();
20 return true;
21 else
22 return false;
23 }
DayZPlayer m_Player
Definition Hand_Events.c:42
const int VOMIT_THRESHOLD
last User Action message lifetime [s] (default: 30s)

References m_Player, and PlayerConstants::VOMIT_THRESHOLD.

Referenced by DeactivateCondition().

◆ DeactivateCondition()

override bool VomitStuffedMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 31 of file VomitStuffed.c.

32 {
34 }
override bool ActivateCondition(PlayerBase player)

References ActivateCondition().

◆ Init()

override void VomitStuffedMdfr::Init ( )
inlineprivate

Definition at line 3 of file VomitStuffed.c.

4 {
6 m_ID = eModifiers.MDF_VOMITSTUFFED;
9 }
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_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

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

◆ OnActivate()

override void VomitStuffedMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 25 of file VomitStuffed.c.

26 {
27 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
28 }

◆ OnTick()

override void VomitStuffedMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprivate

Definition at line 11 of file VomitStuffed.c.

12 {
13
14 }

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