DayZ 1.24
Loading...
Searching...
No Matches
WoundAgent.c
Go to the documentation of this file.
1class 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
19 {
20 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
21 return RESISTANCE_STAGE_1;
22 else
23 return RESISTANCE_STAGE_2;
24 }
25
27 {
28 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
29 return true;
30 else
31 return false;
32 }
33}
eBleedingSourceType m_Type
eAgents
Definition EAgents.c:3
EStatLevels
Definition EStatLevels.c:2
override void Init()
Definition WoundAgent.c:6
override bool GrowDuringAntibioticsAttack(PlayerBase player)
Definition WoundAgent.c:26
override float GetAntibioticsResistanceEx(PlayerBase player)
Definition WoundAgent.c:18
eModifiers
Definition eModifiers.c:2