DayZ 1.24
Loading...
Searching...
No Matches
InfluenzaAgent.c
Go to the documentation of this file.
1class InfluenzaAgent extends AgentBase
2{
3 const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING;
4
5 override void Init()
6 {
7 m_Type = eAgents.INFLUENZA;
8 m_Invasibility = 0.33;
9 m_TransferabilityIn = 1;
10 m_TransferabilityOut = 1;
11 m_MaxCount = 1000;
12 m_Digestibility = 0.1;
13 m_AntibioticsResistance = 0;
14 m_AutoinfectProbability = CalculateAutoinfectProbability(0.40);
15 m_TransferabilityAirOut = 1;
16 m_Potency = EStatLevels.MEDIUM;
17 m_DieOffSpeed = 0.66;
18 }
19
21 {
22 if (player.GetStatHeatComfort().Get() < INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC)
23 return true;
24 else
25 return false;
26 }
27}
eBleedingSourceType m_Type
eAgents
Definition EAgents.c:3
EStatLevels
Definition EStatLevels.c:2
override bool CanAutoinfectPlayer(PlayerBase player)
override void Init()
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING