Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
CholeraMdfr Class Reference
Inheritance diagram for CholeraMdfr:
ModifierBase

Protected Member Functions

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

Private Member Functions

override string GetDebugText ()
override void Init ()

Private Attributes

bool m_Exhaustion
float m_ExhaustionTimer

Static Private Attributes

static const int AGENT_THRESHOLD_ACTIVATE = 250
static const int AGENT_THRESHOLD_DEACTIVATE = 50
static const int CHANCE_OF_VOMIT = 10
static const int CHANCE_OF_VOMIT_AGENT = 30
static const int ENERGY_DRAIN_FROM_VOMIT = 310
static const float STOMACH_MIN_VOLUME = 200
static const int WATER_DRAIN_FROM_VOMIT = 450
static const float WATER_LOSS_CHOLERA = 0.5
static const float WATER_LOSS_CHOLERA_MIN = 0.1

Detailed Description

Definition at line 1 of file cholera.c.

Member Function Documentation

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 31 of file cholera.c.

References AGENT_THRESHOLD_ACTIVATE.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 58 of file cholera.c.

References AGENT_THRESHOLD_DEACTIVATE.

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate

Definition at line 26 of file cholera.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ Init()

◆ OnActivate()

void OnActivate ( PlayerBase player)
inlineprotected

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
inlineprotected

Definition at line 49 of file cholera.c.

References m_Exhaustion, and m_ExhaustionTimer.

◆ OnTick()

Field Documentation

◆ AGENT_THRESHOLD_ACTIVATE

const int AGENT_THRESHOLD_ACTIVATE = 250
staticprivate

Definition at line 3 of file cholera.c.

Referenced by ActivateCondition(), and GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 50
staticprivate

Definition at line 4 of file cholera.c.

Referenced by DeactivateCondition(), and GetDebugText().

◆ CHANCE_OF_VOMIT

const int CHANCE_OF_VOMIT = 10
staticprivate

Definition at line 6 of file cholera.c.

Referenced by OnTick().

◆ CHANCE_OF_VOMIT_AGENT

const int CHANCE_OF_VOMIT_AGENT = 30
staticprivate

Definition at line 7 of file cholera.c.

Referenced by OnTick().

◆ ENERGY_DRAIN_FROM_VOMIT

const int ENERGY_DRAIN_FROM_VOMIT = 310
staticprivate

Definition at line 9 of file cholera.c.

Referenced by OnTick().

◆ m_Exhaustion

bool m_Exhaustion
private

Definition at line 15 of file cholera.c.

Referenced by OnDeactivate(), and OnTick().

◆ m_ExhaustionTimer

float m_ExhaustionTimer
private

Definition at line 14 of file cholera.c.

Referenced by OnDeactivate(), and OnTick().

◆ STOMACH_MIN_VOLUME

const float STOMACH_MIN_VOLUME = 200
staticprivate

Definition at line 12 of file cholera.c.

Referenced by OnTick().

◆ WATER_DRAIN_FROM_VOMIT

const int WATER_DRAIN_FROM_VOMIT = 450
staticprivate

Definition at line 8 of file cholera.c.

Referenced by OnTick().

◆ WATER_LOSS_CHOLERA

const float WATER_LOSS_CHOLERA = 0.5
staticprivate

Definition at line 10 of file cholera.c.

Referenced by OnTick().

◆ WATER_LOSS_CHOLERA_MIN

const float WATER_LOSS_CHOLERA_MIN = 0.1
staticprivate

Definition at line 11 of file cholera.c.

Referenced by OnTick().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/playermodifiers/modifiers/diseases/cholera.c