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 () |
Private Attributes | |
float | m_Time |
float | m_NextEvent |
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 | WATER_DRAIN_FROM_VOMIT = 450 |
static const int | ENERGY_DRAIN_FROM_VOMIT = 310 |
static const float | STOMACH_MIN_VOLUME = 200 |
static const float | EVENT_INTERVAL_MIN = 12 |
static const float | EVENT_INTERVAL_MAX = 18 |
Definition at line 1 of file Salmonella.c.
|
inlineprotected |
Definition at line 32 of file Salmonella.c.
References AGENT_THRESHOLD_ACTIVATE.
|
inlineprotected |
Definition at line 51 of file Salmonella.c.
References AGENT_THRESHOLD_DEACTIVATE.
Definition at line 27 of file Salmonella.c.
References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.
Definition at line 19 of file Salmonella.c.
References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.
|
inlineprotected |
Definition at line 40 of file Salmonella.c.
|
inlineprotected |
Definition at line 46 of file Salmonella.c.
|
inlineprotected |
Definition at line 59 of file Salmonella.c.
References CHANCE_OF_VOMIT, CHANCE_OF_VOMIT_AGENT, ENERGY_DRAIN_FROM_VOMIT, EVENT_INTERVAL_MAX, EVENT_INTERVAL_MIN, m_NextEvent, m_Player, m_Time, Math::RandomFloatInclusive(), Math::RandomInt(), STOMACH_MIN_VOLUME, and WATER_DRAIN_FROM_VOMIT.
Definition at line 3 of file Salmonella.c.
Referenced by ActivateCondition(), and GetDebugText().
Definition at line 4 of file Salmonella.c.
Referenced by DeactivateCondition(), and GetDebugText().
Definition at line 6 of file Salmonella.c.
Referenced by OnTick().
Definition at line 7 of file Salmonella.c.
Referenced by OnTick().
Definition at line 9 of file Salmonella.c.
Referenced by OnTick().
Definition at line 13 of file Salmonella.c.
Referenced by OnTick().
Definition at line 12 of file Salmonella.c.
Referenced by OnTick().
|
private |
Definition at line 17 of file Salmonella.c.
Referenced by OnTick().
|
private |
Definition at line 16 of file Salmonella.c.
Referenced by OnTick().
Definition at line 10 of file Salmonella.c.
Referenced by OnTick().
Definition at line 8 of file Salmonella.c.
Referenced by OnTick().