class AgentBaseSource
AgentBase › MessageReceiverBase
All members, including inherited
Constructors 1
void AgentBase()Members 13
float m_Type = 0float m_Invasibilityhow fast the agent grows when potent enough to grow
float m_TransferabilityInto the player
float m_TransferabilityOutfrom the player
float m_Digestibility = 0.1multiplier for agents digested in the player stomach from an infected item(agents_transfered = digested_amount(in grams or mls) * m_Digestibility)
int m_MaxCount = 1int m_AutoinfectCount = 1number of agents injected during the autoinfection
float m_AutoinfectProbability = CalculateAutoinfectProbability(0)[0..1], 0 = zero chance, 1 = 100% chance of getting this agent once per hour
float m_TransferabilityAirOuttransferibility airborne out
Show 1 more
, NerveAgent.Init()float m_AntibioticsResistance = 1[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistance map below for drug resistances
protected ref map<EMedicalDrugsType, float> m_DrugResistances = new map<EMedicalDrugsType, float>()Show 4 more
, HeavyMetalAgent.Init(), InfluenzaAgent.Init(), NerveAgent.Init(), and WoundAgent.Init()EStatLevels m_Potency = EStatLevels.MEDIUMgrow when player's immune system is at this level or lower
float m_DieOffSpeed = 1how fast the agent dies off when not potent enough to grow(per sec)
Methods 25
protected void InitDefaults()void Init()float GetDieOffSpeedEx(PlayerBase player)EStatLevels GetPotencyEx(PlayerBase player)float GetInvasibilityEx(PlayerBase player)float GetDigestibilityEx(PlayerBase player)float GetDieOffSpeed()float GetAntiboticsResistance()float GetAntibioticsResistanceEx(PlayerBase player)float GetDrugResistance(EMedicalDrugsType drugType, PlayerBase player)float GetInvasibility()bool GrowDuringMedicalDrugsAttack(EMedicalDrugsType drugType, PlayerBase player)should this agent grow based on invasibility even during usage of specific medical drugs attack
bool AutoinfectCheck(float deltaT, PlayerBase player)bool CanAutoinfectPlayer(PlayerBase player)float GetTransferabilityIn()float GetTransferabilityOut()float GetTransferabilityAirOut()int GetMaxCount()string GetName()bool GrowDuringAntibioticsAttack(PlayerBase player)should this agent grow based on invasibility even during antibiotics attack