DayZ 1.24
Loading...
Searching...
No Matches
ChemicalAgent.c
Go to the documentation of this file.
1class 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
17 {
18 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_CONTAMINATION2) || player.GetModifiersManager().IsModifierActive(eModifiers.MDF_CONTAMINATION3))
19 return 0;
20 else
21 {
22 return super.GetDieOffSpeedEx(player);//round-about way of getting the m_DieOffSpeed
23 }
24 }
25}
eBleedingSourceType m_Type
eAgents
Definition EAgents.c:3
EStatLevels
Definition EStatLevels.c:2
override float GetDieOffSpeedEx(PlayerBase player)
override void Init()
eModifiers
Definition eModifiers.c:2