DayZ
1.24
Loading...
Searching...
No Matches
InfluenzaAgent.c
Go to the documentation of this file.
1
class
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
20
override
bool
CanAutoinfectPlayer
(
PlayerBase
player
)
21
{
22
if
(
player
.GetStatHeatComfort().Get() < INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC)
23
return
true
;
24
else
25
return
false
;
26
}
27
}
m_Type
eBleedingSourceType m_Type
Definition
BleedingSource.c:25
eAgents
eAgents
Definition
EAgents.c:3
EStatLevels
EStatLevels
Definition
EStatLevels.c:2
AgentBase
Definition
BrainAgent.c:2
AgentBase::CanAutoinfectPlayer
override bool CanAutoinfectPlayer(PlayerBase player)
Definition
InfluenzaAgent.c:20
AgentBase::Init
override void Init()
Definition
InfluenzaAgent.c:5
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
PlayerConstants
Definition
PlayerConstants.c:2
PlayerConstants::THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
Definition
PlayerConstants.c:84
scripts
4_World
Classes
TransmissionAgents
Agents
InfluenzaAgent.c
Generated by
1.10.0