Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
woundagent.c
Go to the documentation of this file.
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
12 m_AntibioticsResistance = 0.5; //deprecated, use m_DrugResistances to initialize this agents resistance to a specific drug, as seen on lines 16
13 m_MaxCount = 500;
14 m_Potency = EStatLevels.GREAT;
15 m_DieOffSpeed = 1;
16 m_DrugResistances.Set(EMedicalDrugsType.ANTIBIOTICS, 0.5);
17 }
18
20 {
21 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
22 return RESISTANCE_STAGE_1;
23 else
24 return RESISTANCE_STAGE_2;
25 }
26
28 {
29 if (drugType == EMedicalDrugsType.ANTIBIOTICS)
30 {
31 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
32 return true;
33 else
34 return false;
35 }
36
37 return super.GrowDuringMedicalDrugsAttack(drugType, player);
38 }
39}
float m_TransferabilityOut
to the player
Definition agentbase.c:6
float m_TransferabilityIn
how fast the agent grows when potent enough to grow
Definition agentbase.c:5
int m_MaxCount
multiplier for agents digested in the player stomach from an infected item(agents_transfered = digest...
Definition agentbase.c:8
float m_DieOffSpeed
grow when player's immune system is at this level or lower
Definition agentbase.c:17
float m_Type
Definition agentbase.c:3
float m_Invasibility
Definition agentbase.c:4
void AgentBase()
how fast the agent dies off when not potent enough to grow(per sec)
Definition agentbase.c:19
EStatLevels m_Potency
Definition agentbase.c:16
float m_AntibioticsResistance
transferibility airborne out
Definition agentbase.c:12
ref map< EMedicalDrugsType, float > m_DrugResistances
[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistanc...
Definition agentbase.c:14
static const float RESISTANCE_STAGE_2
Definition woundagent.c:4
static const float RESISTANCE_STAGE_1
Definition woundagent.c:3
override bool GrowDuringMedicalDrugsAttack(EMedicalDrugsType drugType, PlayerBase player)
Definition woundagent.c:27
override float GetAntibioticsResistanceEx(PlayerBase player)
Definition woundagent.c:19
override void Init()
Definition woundagent.c:6
eAgents
Definition eagents.c:3
EMedicalDrugsType
eModifiers
Definition emodifiers.c:2
EStatLevels
Definition estatlevels.c:2