Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
AgentBase Class Reference
Inheritance diagram for AgentBase:
MessageReceiverBase FoodPoisonAgent HeavyMetalAgent InfluenzaAgent WoundAgent

Protected Member Functions

void AgentBase ()
 how fast the agent dies off when not potent enough to grow(per sec)
bool AutoinfectCheck (float deltaT, PlayerBase player)
float CalculateAutoinfectProbability (float userprob)
bool CanAutoinfectPlayer (PlayerBase player)
int GetAgentType ()
float GetAntibioticsResistanceEx (PlayerBase player)
float GetAntiboticsResistance ()
int GetAutoinfectCount ()
float GetDieOffSpeed ()
float GetDieOffSpeedEx (PlayerBase player)
float GetDigestibility ()
float GetDigestibilityEx (PlayerBase player)
float GetDrugResistance (EMedicalDrugsType drugType, PlayerBase player)
float GetInvasibility ()
float GetInvasibilityEx (PlayerBase player)
int GetMaxCount ()
string GetName ()
EStatLevels GetPotency ()
EStatLevels GetPotencyEx (PlayerBase player)
float GetTransferabilityAirOut ()
float GetTransferabilityIn ()
float GetTransferabilityOut ()
bool GrowDuringAntibioticsAttack (PlayerBase player)
 DEPRECATED.
bool GrowDuringMedicalDrugsAttack (EMedicalDrugsType drugType, PlayerBase player)
 should this agent grow based on invasibility even during usage of specific medical drugs attack
void Init ()
void InitDefaults ()

Protected Attributes

float m_DieOffSpeed = 1
 grow when player's immune system is at this level or lower
ref map< EMedicalDrugsType, floatm_DrugResistances = new map<EMedicalDrugsType, float>()
 [0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances
EStatLevels m_Potency = EStatLevels.MEDIUM

Private Member Functions

override float GetDieOffSpeedEx (PlayerBase player)
override void Init ()
override void Init ()
override void Init ()
override void Init ()
override void Init ()

Private Attributes

float m_AntibioticsResistance = 1
 transferibility airborne out
int m_AutoinfectCount = 1
float m_AutoinfectProbability = CalculateAutoinfectProbability(0)
 number of agents injected during the autoinfection
float m_Digestibility = 0.1
 from the player
float m_Invasibility
int m_MaxCount = 1
 multiplier for agents digested in the player stomach from an infected item(agents_transfered = digested_amount(in grams or mls) * m_Digestibility)
float m_TransferabilityAirOut
float m_TransferabilityIn
 how fast the agent grows when potent enough to grow
float m_TransferabilityOut
 to the player
float m_Type = 0

Detailed Description

Definition at line 1 of file agentbase.c.

Constructor & Destructor Documentation

◆ AgentBase()

void AgentBase ( )
inlineprotected

how fast the agent dies off when not potent enough to grow(per sec)

Definition at line 19 of file agentbase.c.

References Init(), and InitDefaults().

Member Function Documentation

◆ AutoinfectCheck()

bool AutoinfectCheck ( float deltaT,
PlayerBase player )
inlineprotected

◆ CalculateAutoinfectProbability()

float CalculateAutoinfectProbability ( float userprob)
inlineprotected

Definition at line 98 of file agentbase.c.

References Math::Pow().

◆ CanAutoinfectPlayer()

bool CanAutoinfectPlayer ( PlayerBase player)
inlineprotected

Definition at line 116 of file agentbase.c.

Referenced by AutoinfectCheck().

◆ GetAgentType()

int GetAgentType ( )
inlineprotected

◆ GetAntibioticsResistanceEx()

float GetAntibioticsResistanceEx ( PlayerBase player)
inlineprotected

Definition at line 72 of file agentbase.c.

References GetAntiboticsResistance().

◆ GetAntiboticsResistance()

float GetAntiboticsResistance ( )
inlineprotected

Definition at line 68 of file agentbase.c.

References m_AntibioticsResistance.

Referenced by GetAntibioticsResistanceEx().

◆ GetAutoinfectCount()

int GetAutoinfectCount ( )
inlineprotected

Definition at line 141 of file agentbase.c.

References m_AutoinfectCount.

Referenced by PlayerAgentPool::SpawnAgents().

◆ GetDieOffSpeed()

float GetDieOffSpeed ( )
inlineprotected

◆ GetDieOffSpeedEx() [1/2]

float GetDieOffSpeedEx ( PlayerBase player)
inlineprotected

Definition at line 38 of file agentbase.c.

References GetDieOffSpeed().

◆ GetDieOffSpeedEx() [2/2]

override float GetDieOffSpeedEx ( PlayerBase player)
inlineprivate

Definition at line 16 of file chemicalagent.c.

◆ GetDigestibility()

float GetDigestibility ( )
inlineprotected

Definition at line 93 of file agentbase.c.

References m_Digestibility.

Referenced by GetDigestibilityEx().

◆ GetDigestibilityEx()

float GetDigestibilityEx ( PlayerBase player)
inlineprotected

Definition at line 53 of file agentbase.c.

References GetDigestibility().

◆ GetDrugResistance()

float GetDrugResistance ( EMedicalDrugsType drugType,
PlayerBase player )
inlineprotected

Definition at line 77 of file agentbase.c.

References m_DrugResistances.

◆ GetInvasibility()

float GetInvasibility ( )
inlineprotected

Definition at line 82 of file agentbase.c.

References m_Invasibility.

Referenced by GetInvasibilityEx().

◆ GetInvasibilityEx()

float GetInvasibilityEx ( PlayerBase player)
inlineprotected

Definition at line 48 of file agentbase.c.

References GetInvasibility().

◆ GetMaxCount()

int GetMaxCount ( )
inlineprotected

Definition at line 136 of file agentbase.c.

References m_MaxCount.

◆ GetName()

string GetName ( )
inlineprotected

◆ GetPotency()

EStatLevels GetPotency ( )
inlineprotected

Definition at line 58 of file agentbase.c.

References m_Potency.

Referenced by GetPotencyEx().

◆ GetPotencyEx()

EStatLevels GetPotencyEx ( PlayerBase player)
inlineprotected

Definition at line 43 of file agentbase.c.

References GetPotency().

◆ GetTransferabilityAirOut()

float GetTransferabilityAirOut ( )
inlineprotected

Definition at line 131 of file agentbase.c.

References m_TransferabilityAirOut.

◆ GetTransferabilityIn()

float GetTransferabilityIn ( )
inlineprotected

Definition at line 121 of file agentbase.c.

References m_TransferabilityIn.

◆ GetTransferabilityOut()

float GetTransferabilityOut ( )
inlineprotected

Definition at line 126 of file agentbase.c.

References m_TransferabilityOut.

◆ GrowDuringAntibioticsAttack()

bool GrowDuringAntibioticsAttack ( PlayerBase player)
inlineprotected

DEPRECATED.

should this agent grow based on invasibility even during antibiotics attack

Definition at line 156 of file agentbase.c.

◆ GrowDuringMedicalDrugsAttack()

bool GrowDuringMedicalDrugsAttack ( EMedicalDrugsType drugType,
PlayerBase player )
inlineprotected

should this agent grow based on invasibility even during usage of specific medical drugs attack

Definition at line 88 of file agentbase.c.

Referenced by PluginBase::GrowDuringMedicalDrugsAttack().

◆ Init() [1/6]

void Init ( )
protected

Referenced by AgentBase().

◆ Init() [2/6]

override void Init ( )
inlineprivate

◆ Init() [3/6]

◆ Init() [4/6]

override void Init ( )
inlineprivate

◆ Init() [5/6]

◆ Init() [6/6]

override void Init ( )
inlineprivate

◆ InitDefaults()

void InitDefaults ( )
inlineprotected

Definition at line 25 of file agentbase.c.

References m_DrugResistances.

Referenced by AgentBase().

Field Documentation

◆ m_AntibioticsResistance

float m_AntibioticsResistance = 1
private

transferibility airborne out

Definition at line 12 of file agentbase.c.

Referenced by GetAntiboticsResistance(), Init(), FoodPoisonAgent::Init(), HeavyMetalAgent::Init(), InfluenzaAgent::Init(), and WoundAgent::Init().

◆ m_AutoinfectCount

int m_AutoinfectCount = 1
private

Definition at line 9 of file agentbase.c.

Referenced by GetAutoinfectCount(), and InfluenzaAgent::Init().

◆ m_AutoinfectProbability

float m_AutoinfectProbability = CalculateAutoinfectProbability(0)
private

number of agents injected during the autoinfection

Definition at line 10 of file agentbase.c.

Referenced by AutoinfectCheck().

◆ m_DieOffSpeed

float m_DieOffSpeed = 1
protected

grow when player's immune system is at this level or lower

Definition at line 17 of file agentbase.c.

Referenced by GetDieOffSpeed(), Init(), FoodPoisonAgent::Init(), InfluenzaAgent::Init(), and WoundAgent::Init().

◆ m_Digestibility

float m_Digestibility = 0.1
private

from the player

Definition at line 7 of file agentbase.c.

Referenced by GetDigestibility(), FoodPoisonAgent::Init(), and InfluenzaAgent::Init().

◆ m_DrugResistances

ref map<EMedicalDrugsType, float> m_DrugResistances = new map<EMedicalDrugsType, float>()
protected

[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances

Definition at line 14 of file agentbase.c.

Referenced by GetDrugResistance(), Init(), HeavyMetalAgent::Init(), InfluenzaAgent::Init(), WoundAgent::Init(), and InitDefaults().

◆ m_Invasibility

float m_Invasibility
private

◆ m_MaxCount

int m_MaxCount = 1
private

multiplier for agents digested in the player stomach from an infected item(agents_transfered = digested_amount(in grams or mls) * m_Digestibility)

Definition at line 8 of file agentbase.c.

Referenced by GetMaxCount(), Init(), FoodPoisonAgent::Init(), HeavyMetalAgent::Init(), InfluenzaAgent::Init(), and WoundAgent::Init().

◆ m_Potency

◆ m_TransferabilityAirOut

float m_TransferabilityAirOut
private

Definition at line 11 of file agentbase.c.

Referenced by GetTransferabilityAirOut(), Init(), and InfluenzaAgent::Init().

◆ m_TransferabilityIn

float m_TransferabilityIn
private

how fast the agent grows when potent enough to grow

Definition at line 5 of file agentbase.c.

Referenced by GetTransferabilityIn(), Init(), FoodPoisonAgent::Init(), HeavyMetalAgent::Init(), InfluenzaAgent::Init(), and WoundAgent::Init().

◆ m_TransferabilityOut

float m_TransferabilityOut
private

◆ m_Type


The documentation for this class was generated from the following files:
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/agentbase.c
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/brainagent.c
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/chemicalagent.c
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/choleraagent.c
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/nerveagent.c
  • F:/Games/Dayz/scripts/4_world/classes/transmissionagents/agents/salmonellaagent.c