Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
PlayerBase
Definition: playerbaseclient.c:1
eAgents
eAgents
Definition: eagents.c:2
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
eModifiers
eModifiers
Definition: emodifiers.c:1
AgentBase
Definition: brainagent.c:1
EStatLevels
EStatLevels
Definition: estatlevels.c:1