Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
woundagent.c
Go to the documentation of this file.
1
class
WoundAgent
:
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;
//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
19
override
float
GetAntibioticsResistanceEx
(
PlayerBase
player)
20
{
21
if
(player.GetModifiersManager().IsModifierActive(
eModifiers
.MDF_WOUND_INFECTION1))
22
return
RESISTANCE_STAGE_1
;
23
else
24
return
RESISTANCE_STAGE_2
;
25
}
26
27
override
bool
GrowDuringMedicalDrugsAttack
(
EMedicalDrugsType
drugType,
PlayerBase
player)
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
}
AgentBase::m_TransferabilityOut
float m_TransferabilityOut
to the player
Definition
agentbase.c:6
AgentBase::m_TransferabilityIn
float m_TransferabilityIn
how fast the agent grows when potent enough to grow
Definition
agentbase.c:5
AgentBase::m_MaxCount
int m_MaxCount
multiplier for agents digested in the player stomach from an infected item(agents_transfered = digest...
Definition
agentbase.c:8
AgentBase::m_DieOffSpeed
float m_DieOffSpeed
grow when player's immune system is at this level or lower
Definition
agentbase.c:17
AgentBase::m_Type
float m_Type
Definition
agentbase.c:3
AgentBase::m_Invasibility
float m_Invasibility
Definition
agentbase.c:4
AgentBase::AgentBase
void AgentBase()
how fast the agent dies off when not potent enough to grow(per sec)
Definition
agentbase.c:19
AgentBase::m_Potency
EStatLevels m_Potency
Definition
agentbase.c:16
AgentBase::m_AntibioticsResistance
float m_AntibioticsResistance
transferibility airborne out
Definition
agentbase.c:12
AgentBase::m_DrugResistances
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
PlayerBase
Definition
playerbaseclient.c:2
WoundAgent
Definition
woundagent.c:2
WoundAgent::RESISTANCE_STAGE_2
static const float RESISTANCE_STAGE_2
Definition
woundagent.c:4
WoundAgent::RESISTANCE_STAGE_1
static const float RESISTANCE_STAGE_1
Definition
woundagent.c:3
WoundAgent::GrowDuringMedicalDrugsAttack
override bool GrowDuringMedicalDrugsAttack(EMedicalDrugsType drugType, PlayerBase player)
Definition
woundagent.c:27
WoundAgent::GetAntibioticsResistanceEx
override float GetAntibioticsResistanceEx(PlayerBase player)
Definition
woundagent.c:19
WoundAgent::Init
override void Init()
Definition
woundagent.c:6
eAgents
eAgents
Definition
eagents.c:3
EMedicalDrugsType
EMedicalDrugsType
Definition
emedicaldrugstype.c:2
eModifiers
eModifiers
Definition
emodifiers.c:2
EStatLevels
EStatLevels
Definition
estatlevels.c:2
Games
Dayz
scripts
4_world
classes
transmissionagents
agents
woundagent.c
Generated by
1.17.0