Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
SalmonellaMdfr Class Reference
Inheritance diagram for SalmonellaMdfr:
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
float m_NextEvent
float m_Time

Static Private Attributes

static const int AGENT_THRESHOLD_ACTIVATE = 60
static const int AGENT_THRESHOLD_DEACTIVATE = 20
static const int CHANCE_OF_VOMIT = 10
static const int CHANCE_OF_VOMIT_AGENT = 20
static const int ENERGY_DRAIN_FROM_VOMIT = 310
static const float EVENT_INTERVAL_MAX = 18
static const float EVENT_INTERVAL_MIN = 12
static const float STOMACH_MIN_VOLUME = 200
static const int WATER_DRAIN_FROM_VOMIT = 450

Detailed Description

Definition at line 1 of file salmonella.c.

Member Function Documentation

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 35 of file salmonella.c.

References AGENT_THRESHOLD_ACTIVATE.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 40 of file salmonella.c.

References AGENT_THRESHOLD_DEACTIVATE.

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate

Definition at line 30 of file salmonella.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 58 of file salmonella.c.

References m_Exhaustion, and m_ExhaustionTimer.

◆ OnTick()

Field Documentation

◆ AGENT_THRESHOLD_ACTIVATE

const int AGENT_THRESHOLD_ACTIVATE = 60
staticprivate

Definition at line 3 of file salmonella.c.

Referenced by ActivateCondition(), and GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 20
staticprivate

Definition at line 4 of file salmonella.c.

Referenced by DeactivateCondition(), and GetDebugText().

◆ CHANCE_OF_VOMIT

const int CHANCE_OF_VOMIT = 10
staticprivate

Definition at line 6 of file salmonella.c.

Referenced by OnTick().

◆ CHANCE_OF_VOMIT_AGENT

const int CHANCE_OF_VOMIT_AGENT = 20
staticprivate

Definition at line 7 of file salmonella.c.

Referenced by OnTick().

◆ ENERGY_DRAIN_FROM_VOMIT

const int ENERGY_DRAIN_FROM_VOMIT = 310
staticprivate

Definition at line 9 of file salmonella.c.

Referenced by OnTick().

◆ EVENT_INTERVAL_MAX

const float EVENT_INTERVAL_MAX = 18
staticprivate

Definition at line 13 of file salmonella.c.

Referenced by OnTick().

◆ EVENT_INTERVAL_MIN

const float EVENT_INTERVAL_MIN = 12
staticprivate

Definition at line 12 of file salmonella.c.

Referenced by OnTick().

◆ m_Exhaustion

bool m_Exhaustion
private

Definition at line 19 of file salmonella.c.

Referenced by OnDeactivate(), and OnTick().

◆ m_ExhaustionTimer

float m_ExhaustionTimer
private

Definition at line 17 of file salmonella.c.

Referenced by OnDeactivate(), and OnTick().

◆ m_NextEvent

float m_NextEvent
private

Definition at line 16 of file salmonella.c.

Referenced by OnTick().

◆ m_Time

float m_Time
private

Definition at line 15 of file salmonella.c.

Referenced by OnTick().

◆ STOMACH_MIN_VOLUME

const float STOMACH_MIN_VOLUME = 200
staticprivate

Definition at line 10 of file salmonella.c.

Referenced by OnTick().

◆ WATER_DRAIN_FROM_VOMIT

const int WATER_DRAIN_FROM_VOMIT = 450
staticprivate

Definition at line 8 of file salmonella.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/salmonella.c