Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
woundinfection.c File Reference

Go to the source code of this file.

Data Structures

class  WoundInfectionMdfr

Functions

bool ActivateCondition (PlayerBase player)
bool DeactivateCondition (PlayerBase player)
override string GetDebugText ()
override void Init ()
void OnActivate (PlayerBase player)
 is called when an inactive modifier gets activated during gameplay, is NOT called on activation upon player server connection(see OnReconnect)
void OnDeactivate (PlayerBase player)
void OnTick (PlayerBase player, float deltaT)

Variables

WoundInfectionMdfr AGENT_THRESHOLD_ACTIVATE = 1
static const int AGENT_THRESHOLD_DEACTIVATE = 250
static const int AGENT_THRESHOLD_FEVER = 250
float m_NextEvent
float m_Time
static const int PAIN_EVENT_INTERVAL_MAX = 26
static const int PAIN_EVENT_INTERVAL_MIN = 18

Function Documentation

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
protected

Definition at line 39 of file woundinfection.c.

References AGENT_THRESHOLD_ACTIVATE.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
protected

Definition at line 57 of file woundinfection.c.

References ModifierBase::ActivateCondition().

◆ GetDebugText()

override string GetDebugText ( )
protected

Definition at line 34 of file woundinfection.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ Init()

◆ OnActivate()

void OnActivate ( PlayerBase player)
protected

is called when an inactive modifier gets activated during gameplay, is NOT called on activation upon player server connection(see OnReconnect)

Definition at line 44 of file woundinfection.c.

References m_NextEvent, HeavyMetalMdfr::OnActivate(), PAIN_EVENT_INTERVAL_MAX, PAIN_EVENT_INTERVAL_MIN, and Math::RandomFloatInclusive().

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
protected

Definition at line 52 of file woundinfection.c.

Referenced by Deactivate().

◆ OnTick()

Variable Documentation

◆ AGENT_THRESHOLD_ACTIVATE

WoundInfectionMdfr AGENT_THRESHOLD_ACTIVATE = 1

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 250
static

Definition at line 15 of file woundinfection.c.

◆ AGENT_THRESHOLD_FEVER

const int AGENT_THRESHOLD_FEVER = 250
static

Definition at line 16 of file woundinfection.c.

◆ m_NextEvent

float m_NextEvent
protected

Definition at line 21 of file woundinfection.c.

Referenced by OnActivate(), and OnTick().

◆ m_Time

float m_Time
protected

Definition at line 22 of file woundinfection.c.

◆ PAIN_EVENT_INTERVAL_MAX

const int PAIN_EVENT_INTERVAL_MAX = 26
static

Definition at line 19 of file woundinfection.c.

Referenced by OnActivate(), and OnTick().

◆ PAIN_EVENT_INTERVAL_MIN

const int PAIN_EVENT_INTERVAL_MIN = 18
static

Definition at line 18 of file woundinfection.c.

Referenced by OnActivate(), and OnTick().