46 if (!player.m_AgentPool.GetTemporaryResistance(
eAgents.INFLUENZA))
48 float heatcomfort = player.GetStatHeatComfort().Get();
51 float subtractTimeModifier;
61 float subtractTimeModified = subtractTimeRandomized * subtractTimeModifier;
94 float heatComfort = player.GetStatHeatComfort().Get();
98 if (player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_PNEUMONIA))
100 if (player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_INFLUENZA))
118 if (player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_PNEUMONIA))
121 return super.GetPotencyEx(player);
126 if (player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_ANTIBIOTICS))
128 else if (player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_IMMUNITYBOOST))
131 return super.GetDieOffSpeedEx(player);
float m_TransferabilityOut
to the player
float m_TransferabilityIn
how fast the agent grows when potent enough to grow
float m_TransferabilityAirOut
int m_MaxCount
multiplier for agents digested in the player stomach from an infected item(agents_transfered = digest...
float m_DieOffSpeed
grow when player's immune system is at this level or lower
void AgentBase()
how fast the agent dies off when not potent enough to grow(per sec)
float m_Digestibility
from the player
float m_AntibioticsResistance
transferibility airborne out
ref map< EMedicalDrugsType, float > m_DrugResistances
[0..1], 0 means antibiotics have full effect, 1 means no effect - deprecated, use the m_DrugResistanc...
const int AGENT_THRESHOLD_ACTIVATE
const float INVASIBILITY_INC_LOW_HC
const float CONTRACT_HEATCOMFORT_MODIFIER[3]
const float INVASIBILITY_DEC_INFLUENZA
const float INVASIBILITY_DEC_COMMON_COLD
override bool CanAutoinfectPlayer(PlayerBase player)
override float GetDieOffSpeedEx(PlayerBase player)
const int CONTRACT_TIME_THRESHOLD_MAX
min value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
const float INVASIBILITY_INC_CRITICAL_HC
int m_TimeToContract
max value of time [s] for subtraction from MAX_TIME_TO_CONTRACT (used for randomization)
const float INVASIBILITY_INC_MEDIUM_HC
const float INVASIBILITY_DEC_PNEUMONIA
override bool AutoinfectCheck(float deltaT, PlayerBase player)
const int MAX_TIME_TO_CONTRACT
const int CONTRACT_TIME_THRESHOLD_MIN
at this time [s], character will contract the disease
const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC
override EStatLevels GetPotencyEx(PlayerBase player)
override float GetInvasibilityEx(PlayerBase player)
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
static const float THRESHOLD_HEAT_COMFORT_MINUS_EMPTY
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].