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

Go to the source code of this file.

Data Structures

class  HeavyMetalMdfr
class  HeavyMetalPhase2Mdfr

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

HeavyMetalMdfr AGENT_THRESHOLD_ACTIVATE = 1
static const int AGENT_THRESHOLD_DEACTIVATE = 200
static const int SHIVER_EVENT_INTERVAL_MAX = 40
static const int SHIVER_EVENT_INTERVAL_MIN = 20
static const int VOMIT_EVENT_INTERVAL_MAX = 360
static const int VOMIT_EVENT_INTERVAL_MIN = 180

Function Documentation

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
protected

Definition at line 53 of file heavymetal.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
protected

Definition at line 58 of file heavymetal.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ GetDebugText()

override string GetDebugText ( )

Definition at line 48 of file heavymetal.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ Init()

override void Init ( )
protected

Definition at line 181 of file heavymetal.c.

References m_ID.

◆ 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 203 of file heavymetal.c.

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
protected

Definition at line 211 of file heavymetal.c.

◆ OnTick()

void OnTick ( PlayerBase player,
float deltaT )
protected

Variable Documentation

◆ AGENT_THRESHOLD_ACTIVATE

HeavyMetalPhase2Mdfr AGENT_THRESHOLD_ACTIVATE = 1

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 200
static

Definition at line 43 of file heavymetal.c.

Referenced by ActivateCondition(), DeactivateCondition(), and GetDebugText().

◆ SHIVER_EVENT_INTERVAL_MAX

const int SHIVER_EVENT_INTERVAL_MAX = 40
static

Definition at line 46 of file heavymetal.c.

Referenced by OnTick().

◆ SHIVER_EVENT_INTERVAL_MIN

const int SHIVER_EVENT_INTERVAL_MIN = 20
static

Definition at line 45 of file heavymetal.c.

Referenced by OnTick().

◆ VOMIT_EVENT_INTERVAL_MAX

const int VOMIT_EVENT_INTERVAL_MAX = 360
staticprotected

Definition at line 179 of file heavymetal.c.

Referenced by OnTick().

◆ VOMIT_EVENT_INTERVAL_MIN

const int VOMIT_EVENT_INTERVAL_MIN = 180
staticprotected

Definition at line 178 of file heavymetal.c.

Referenced by OnTick().