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

const int AGENT_THRESHOLD_ACTIVATE = 1150
const int AGENT_THRESHOLD_DEACTIVATE = 1100
const float HEALTH_LOSS_PNEUMONIA = 0.1
const float STAMINA_DEPLETION_MULTIPLIER = 1.3
const float STAMINA_RECOVERY_MULTIPLIER = 0.5
const int TEMPORARY_RESISTANCE_TIME = 600

Detailed Description

Definition at line 1 of file pneumonia.c.

Member Function Documentation

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 27 of file pneumonia.c.

References AGENT_THRESHOLD_ACTIVATE.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 53 of file pneumonia.c.

References AGENT_THRESHOLD_DEACTIVATE.

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate

Definition at line 22 of file pneumonia.c.

References AGENT_THRESHOLD_ACTIVATE, and AGENT_THRESHOLD_DEACTIVATE.

◆ Init()

◆ OnActivate()

void OnActivate ( PlayerBase player)
inlineprotected

Definition at line 35 of file pneumonia.c.

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
inlineprotected

Definition at line 43 of file pneumonia.c.

References TEMPORARY_RESISTANCE_TIME.

◆ OnTick()

void OnTick ( PlayerBase player,
float deltaT )
inlineprotected

Definition at line 58 of file pneumonia.c.

References HEALTH_LOSS_PNEUMONIA, Math::RandomFloat01(), and Math::RandomInt().

Field Documentation

◆ AGENT_THRESHOLD_ACTIVATE

const int AGENT_THRESHOLD_ACTIVATE = 1150
private

Definition at line 3 of file pneumonia.c.

Referenced by ActivateCondition(), and GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 1100
private

Definition at line 4 of file pneumonia.c.

Referenced by DeactivateCondition(), and GetDebugText().

◆ HEALTH_LOSS_PNEUMONIA

const float HEALTH_LOSS_PNEUMONIA = 0.1
private

Definition at line 9 of file pneumonia.c.

Referenced by OnTick().

◆ STAMINA_DEPLETION_MULTIPLIER

const float STAMINA_DEPLETION_MULTIPLIER = 1.3
private

Definition at line 6 of file pneumonia.c.

Referenced by StaminaHandler::Init().

◆ STAMINA_RECOVERY_MULTIPLIER

const float STAMINA_RECOVERY_MULTIPLIER = 0.5
private

Definition at line 7 of file pneumonia.c.

Referenced by StaminaHandler::Init().

◆ TEMPORARY_RESISTANCE_TIME

const int TEMPORARY_RESISTANCE_TIME = 600
private

Definition at line 11 of file pneumonia.c.

Referenced by OnDeactivate().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/playermodifiers/modifiers/diseases/pneumonia.c