Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
InfluenzaAgent Class Reference
Inheritance diagram for InfluenzaAgent:
AgentBase

Protected Member Functions

override bool AutoinfectCheck (float deltaT, PlayerBase player)
override bool CanAutoinfectPlayer (PlayerBase player)
override float GetDieOffSpeedEx (PlayerBase player)
override float GetInvasibilityEx (PlayerBase player)
override EStatLevels GetPotencyEx (PlayerBase player)
override void Init ()

Protected Attributes

const float CONTRACT_HEATCOMFORT_MODIFIER [3]
const int CONTRACT_TIME_THRESHOLD_MAX = 200
 min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
const int CONTRACT_TIME_THRESHOLD_MIN = 10
 at this time [s], character will contract the disease
const float INVASIBILITY_DEC_COMMON_COLD = -0.3
const float INVASIBILITY_DEC_INFLUENZA = -0.3
const float INVASIBILITY_DEC_PNEUMONIA = 0.00
const float INVASIBILITY_INC_CRITICAL_HC = 0.70
const float INVASIBILITY_INC_LOW_HC = 0.40
const float INVASIBILITY_INC_MEDIUM_HC = 0.60
int m_ElapsedTime
int m_TimeToContract = MAX_TIME_TO_CONTRACT
 max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
const int MAX_TIME_TO_CONTRACT = 8650

Private Attributes

const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING
Private Attributes inherited from AgentBase
float m_DieOffSpeed = 1
 grow when player's immune system is at this level or lower
ref map< EMedicalDrugsType, floatm_DrugResistances = new map<EMedicalDrugsType, float>()
 [0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances
EStatLevels m_Potency = EStatLevels.MEDIUM

Additional Inherited Members

Private Member Functions inherited from AgentBase
void AgentBase ()
 how fast the agent dies off when not potent enough to grow(per sec)
bool AutoinfectCheck (float deltaT, PlayerBase player)
float CalculateAutoinfectProbability (float userprob)
bool CanAutoinfectPlayer (PlayerBase player)
int GetAgentType ()
float GetAntibioticsResistanceEx (PlayerBase player)
float GetAntiboticsResistance ()
int GetAutoinfectCount ()
float GetDieOffSpeed ()
float GetDieOffSpeedEx (PlayerBase player)
float GetDigestibility ()
float GetDigestibilityEx (PlayerBase player)
float GetDrugResistance (EMedicalDrugsType drugType, PlayerBase player)
float GetInvasibility ()
float GetInvasibilityEx (PlayerBase player)
int GetMaxCount ()
string GetName ()
EStatLevels GetPotency ()
EStatLevels GetPotencyEx (PlayerBase player)
float GetTransferabilityAirOut ()
float GetTransferabilityIn ()
float GetTransferabilityOut ()
bool GrowDuringAntibioticsAttack (PlayerBase player)
 DEPRECATED.
bool GrowDuringMedicalDrugsAttack (EMedicalDrugsType drugType, PlayerBase player)
 should this agent grow based on invasibility even during usage of specific medical drugs attack
void Init ()
void InitDefaults ()

Detailed Description

Definition at line 1 of file influenzaagent.c.

Member Function Documentation

◆ AutoinfectCheck()

◆ CanAutoinfectPlayer()

override bool CanAutoinfectPlayer ( PlayerBase player)
inlineprotected

Definition at line 84 of file influenzaagent.c.

References INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC.

◆ GetDieOffSpeedEx()

override float GetDieOffSpeedEx ( PlayerBase player)
inlineprotected

Definition at line 124 of file influenzaagent.c.

References AgentBase::GetDieOffSpeed().

◆ GetInvasibilityEx()

◆ GetPotencyEx()

override EStatLevels GetPotencyEx ( PlayerBase player)
inlineprotected

Definition at line 116 of file influenzaagent.c.

◆ Init()

Field Documentation

◆ CONTRACT_HEATCOMFORT_MODIFIER

const float CONTRACT_HEATCOMFORT_MODIFIER[3]
protected
Initial value:
= {
0.25,
0.6,
1.0,
}

Definition at line 19 of file influenzaagent.c.

Referenced by AutoinfectCheck().

◆ CONTRACT_TIME_THRESHOLD_MAX

const int CONTRACT_TIME_THRESHOLD_MAX = 200
protected

min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)

Definition at line 15 of file influenzaagent.c.

Referenced by AutoinfectCheck().

◆ CONTRACT_TIME_THRESHOLD_MIN

const int CONTRACT_TIME_THRESHOLD_MIN = 10
protected

at this time [s], character will contract the disease

Definition at line 14 of file influenzaagent.c.

Referenced by AutoinfectCheck().

◆ INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC

const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING
private

Definition at line 3 of file influenzaagent.c.

Referenced by CanAutoinfectPlayer().

◆ INVASIBILITY_DEC_COMMON_COLD

const float INVASIBILITY_DEC_COMMON_COLD = -0.3
protected

Definition at line 9 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_DEC_INFLUENZA

const float INVASIBILITY_DEC_INFLUENZA = -0.3
protected

Definition at line 10 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_DEC_PNEUMONIA

const float INVASIBILITY_DEC_PNEUMONIA = 0.00
protected

Definition at line 11 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_CRITICAL_HC

const float INVASIBILITY_INC_CRITICAL_HC = 0.70
protected

Definition at line 7 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_LOW_HC

const float INVASIBILITY_INC_LOW_HC = 0.40
protected

Definition at line 5 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ INVASIBILITY_INC_MEDIUM_HC

const float INVASIBILITY_INC_MEDIUM_HC = 0.60
protected

Definition at line 6 of file influenzaagent.c.

Referenced by GetInvasibilityEx().

◆ m_ElapsedTime

int m_ElapsedTime
protected

Definition at line 25 of file influenzaagent.c.

Referenced by AutoinfectCheck(), and Init().

◆ m_TimeToContract

int m_TimeToContract = MAX_TIME_TO_CONTRACT
protected

max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)

Definition at line 17 of file influenzaagent.c.

Referenced by AutoinfectCheck().

◆ MAX_TIME_TO_CONTRACT

const int MAX_TIME_TO_CONTRACT = 8650
protected

Definition at line 13 of file influenzaagent.c.

Referenced by AutoinfectCheck().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/influenzaagent.c