DayZ
1.24
Loading...
Searching...
No Matches
WoundAgent.c
Go to the documentation of this file.
1
class
WoundAgent
extends
AgentBase
2
{
3
static
const
float
RESISTANCE_STAGE_1 = 1;
4
static
const
float
RESISTANCE_STAGE_2 = 0.5;
5
6
override
void
Init
()
7
{
8
m_Type
=
eAgents
.WOUND_AGENT;
9
m_Invasibility = 0.208;
//to reach 250 in 20 mins
10
m_TransferabilityIn = 1;
11
m_TransferabilityOut = 0;
12
m_AntibioticsResistance = 0.5;
//override in a func. GetAntiboticsResistance()
13
m_MaxCount = 500;
14
m_Potency =
EStatLevels
.GREAT;
15
m_DieOffSpeed = 1;
16
}
17
18
override
float
GetAntibioticsResistanceEx
(
PlayerBase
player
)
19
{
20
if
(
player
.GetModifiersManager().IsModifierActive(
eModifiers
.MDF_WOUND_INFECTION1))
21
return
RESISTANCE_STAGE_1;
22
else
23
return
RESISTANCE_STAGE_2;
24
}
25
26
override
bool
GrowDuringAntibioticsAttack
(
PlayerBase
player
)
27
{
28
if
(
player
.GetModifiersManager().IsModifierActive(
eModifiers
.MDF_WOUND_INFECTION1))
29
return
true
;
30
else
31
return
false
;
32
}
33
}
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::Init
override void Init()
Definition
WoundAgent.c:6
AgentBase::GrowDuringAntibioticsAttack
override bool GrowDuringAntibioticsAttack(PlayerBase player)
Definition
WoundAgent.c:26
AgentBase::GetAntibioticsResistanceEx
override float GetAntibioticsResistanceEx(PlayerBase player)
Definition
WoundAgent.c:18
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
eModifiers
eModifiers
Definition
eModifiers.c:2
scripts
4_World
Classes
TransmissionAgents
Agents
WoundAgent.c
Generated by
1.10.0