DayZ 1.24
Loading...
Searching...
No Matches
AgentBase Class Reference
Collaboration diagram for AgentBase:
[legend]

Private Member Functions

override void Init ()
 
override void Init ()
 
override float GetDieOffSpeedEx (PlayerBase player)
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override bool CanAutoinfectPlayer (PlayerBase player)
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override float GetAntibioticsResistanceEx (PlayerBase player)
 
override bool GrowDuringAntibioticsAttack (PlayerBase player)
 

Private Attributes

const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING
 

Static Private Attributes

static const float RESISTANCE_STAGE_1 = 1
 
static const float RESISTANCE_STAGE_2 = 0.5
 

Detailed Description

Definition at line 1 of file BrainAgent.c.

Member Function Documentation

◆ CanAutoinfectPlayer()

override bool AgentBase::CanAutoinfectPlayer ( PlayerBase player)
inlineprivate

Definition at line 20 of file InfluenzaAgent.c.

21 {
22 if (player.GetStatHeatComfort().Get() < INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC)
23 return true;
24 else
25 return false;
26 }
const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC

Referenced by MessageReceiverBase::AutoinfectCheck().

◆ GetAntibioticsResistanceEx()

override float AgentBase::GetAntibioticsResistanceEx ( PlayerBase player)
inlineprivate

Definition at line 18 of file WoundAgent.c.

19 {
20 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
21 return RESISTANCE_STAGE_1;
22 else
23 return RESISTANCE_STAGE_2;
24 }
static const float RESISTANCE_STAGE_2
Definition WoundAgent.c:4
static const float RESISTANCE_STAGE_1
Definition WoundAgent.c:3
eModifiers
Definition eModifiers.c:2

◆ GetDieOffSpeedEx()

override float AgentBase::GetDieOffSpeedEx ( PlayerBase player)
inlineprivate

Definition at line 16 of file ChemicalAgent.c.

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 }

◆ GrowDuringAntibioticsAttack()

override bool AgentBase::GrowDuringAntibioticsAttack ( PlayerBase player)
inlineprivate

Definition at line 26 of file WoundAgent.c.

27 {
28 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
29 return true;
30 else
31 return false;
32 }

◆ Init() [1/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file BrainAgent.c.

4 {
5 m_Type = eAgents.BRAIN;
6 m_Invasibility = 1;
7 m_TransferabilityIn = 1;
8 m_TransferabilityOut = 0;
9 m_AntibioticsResistance = 1;
10 m_MaxCount = 5000;
11 m_Potency = EStatLevels.GREAT;
12 m_DieOffSpeed = 1;
13 }
eBleedingSourceType m_Type
eAgents
Definition EAgents.c:3
EStatLevels
Definition EStatLevels.c:2

References m_Type.

Referenced by MessageReceiverBase::AgentBase().

◆ Init() [2/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file ChemicalAgent.c.

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 }

References m_Type.

◆ Init() [3/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file CholeraAgent.c.

4 {
5 m_Type = eAgents.CHOLERA;
6 m_Invasibility = 0.15;
7 m_TransferabilityIn = 0.1;
8 m_TransferabilityOut = 0.1;
9 m_AntibioticsResistance = 0;
10 m_MaxCount = 1000;
11 m_Potency = EStatLevels.HIGH;
12 m_DieOffSpeed = 0.45;
13 }

References m_Type.

◆ Init() [4/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file FoodPoisonAgent.c.

4 {
5 m_Type = eAgents.FOOD_POISON;
6 m_Invasibility = 1;
7 m_TransferabilityIn = 1;
8 m_TransferabilityOut = 0;
9 m_AntibioticsResistance = 0.5;
10 m_MaxCount = 400;
11 m_Potency = EStatLevels.CRITICAL;
12 m_DieOffSpeed = 1;
13 m_Digestibility = 1;
14 }

References m_Type.

◆ Init() [5/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 5 of file InfluenzaAgent.c.

6 {
7 m_Type = eAgents.INFLUENZA;
8 m_Invasibility = 0.33;
9 m_TransferabilityIn = 1;
10 m_TransferabilityOut = 1;
11 m_MaxCount = 1000;
12 m_Digestibility = 0.1;
13 m_AntibioticsResistance = 0;
14 m_AutoinfectProbability = CalculateAutoinfectProbability(0.40);
15 m_TransferabilityAirOut = 1;
16 m_Potency = EStatLevels.MEDIUM;
17 m_DieOffSpeed = 0.66;
18 }

References m_Type.

◆ Init() [6/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file NerveAgent.c.

4 {
5 m_Type = eAgents.NERVE_AGENT;
6 m_Invasibility = 0;
7 m_TransferabilityIn = 0.1;
8 m_TransferabilityOut = 1;
9 m_TransferabilityAirOut = 0;
10 m_AntibioticsResistance = 0.5;//override in a func. GetAntiboticsResistance()
11 m_MaxCount = 500;
12 m_Potency = EStatLevels.CRITICAL;
13 m_DieOffSpeed = 0.1;
14 }

References m_Type.

◆ Init() [7/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 3 of file SalmonellaAgent.c.

4 {
5 m_Type = eAgents.SALMONELLA;
6 m_Invasibility = 0.75;
7 m_TransferabilityIn = 0.1;
8 m_TransferabilityOut = 0.1;
9 m_AntibioticsResistance = 1;
10 m_MaxCount = 300;
11 m_Potency = EStatLevels.HIGH;
12 m_DieOffSpeed = 1;
13 }

References m_Type.

◆ Init() [8/8]

override void AgentBase::Init ( )
inlineprivate

Definition at line 6 of file WoundAgent.c.

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 }

References m_Type.

Member Data Documentation

◆ INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC

const float AgentBase::INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING
private

Definition at line 3 of file InfluenzaAgent.c.

◆ RESISTANCE_STAGE_1

const float AgentBase::RESISTANCE_STAGE_1 = 1
staticprivate

Definition at line 3 of file WoundAgent.c.

◆ RESISTANCE_STAGE_2

const float AgentBase::RESISTANCE_STAGE_2 = 0.5
staticprivate

Definition at line 4 of file WoundAgent.c.


The documentation for this class was generated from the following files: