Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
chemicalagent.c
Go to the documentation of this file.
1 class ChemicalAgent extends AgentBase
2 {
3  override void Init()
4  {
5  m_Type = eAgents.CHEMICAL_POISON;
6  m_Invasibility = 0;
7  m_TransferabilityIn = 0.1;
8  m_TransferabilityOut = 1;
9  m_TransferabilityAirOut = 1;
10  m_AntibioticsResistance = 1;
11  m_MaxCount = 500;
12  m_Potency = EStatLevels.CRITICAL;
13  m_DieOffSpeed = 0.1;
14  }
15 
16  override float GetDieOffSpeedEx(PlayerBase player)
17  {
18  if( player.GetModifiersManager().IsModifierActive(eModifiers.MDF_CONTAMINATION2) || player.GetModifiersManager().IsModifierActive(eModifiers.MDF_CONTAMINATION3))
19  {
20  return 0;
21  }
22  else
23  {
24  return super.GetDieOffSpeedEx(player);//round-about way of getting the m_DieOffSpeed
25  }
26  }
27 }
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