DayZ 1.24
|
Protected Member Functions | |
bool | ActivateCondition (PlayerBase player) |
void | OnActivate (PlayerBase player) |
void | OnDeactivate (PlayerBase player) |
bool | DeactivateCondition (PlayerBase player) |
void | OnTick (PlayerBase player, float deltaT) |
Private Member Functions | |
override void | Init () |
override string | GetDebugText () |
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 | WATER_DRAIN_FROM_VOMIT = 450 |
static const int | ENERGY_DRAIN_FROM_VOMIT = 310 |
static const float | WATER_LOSS_CHOLERA = 0.5 |
static const float | WATER_LOSS_CHOLERA_MIN = 0.1 |
static const float | STOMACH_MIN_VOLUME = 200 |
|
inlineprotected |
Definition at line 27 of file Cholera.c.
References AGENT_THRESHOLD_ACTIVATE.
|
inlineprotected |
Definition at line 45 of file Cholera.c.
References AGENT_THRESHOLD_DEACTIVATE.
Definition at line 22 of file Cholera.c.
References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.
Definition at line 14 of file Cholera.c.
References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 53 of file Cholera.c.
References CHANCE_OF_VOMIT, CHANCE_OF_VOMIT_AGENT, ENERGY_DRAIN_FROM_VOMIT, m_Player, Math::Max(), Math::RandomInt(), Math::RandomIntInclusive(), STOMACH_MIN_VOLUME, WATER_DRAIN_FROM_VOMIT, WATER_LOSS_CHOLERA, and WATER_LOSS_CHOLERA_MIN.
Definition at line 3 of file Cholera.c.
Referenced by ActivateCondition(), and GetDebugText().
Definition at line 4 of file Cholera.c.
Referenced by DeactivateCondition(), and GetDebugText().