39 player.IncreaseDiseaseCount();
46 player.DecreaseDiseaseCount();
58 float chanceOfCough =
Math.
Clamp(player.GetSingleAgentCountNormalized(
eAgents.INFLUENZA),0,0.85);
66 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
overall time this modifier was active
bool m_AnalyticsStatsEnabled
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
void ModifiersManager(PlayerBase player)
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
const int COUGH_RND_DIVIDER_NORMAL_MIN
void OnActivate(PlayerBase player)
void OnTick(PlayerBase player, float deltaT)
const int AGENT_THRESHOLD_ACTIVATE
const int COUGH_RND_DIVIDER_SUPPRESSED_MAX
ModifiersManager m_ModifiersManager
const int AGENT_THRESHOLD_DEACTIVATE
const int COUGH_RND_DIVIDER_NORMAL_MAX
override string GetDebugText()
bool ActivateCondition(PlayerBase player)
const int COUGH_RND_DIVIDER_SUPPRESSED_MIN
const int TEMPORARY_RESISTANCE_TIME
void OnDeactivate(PlayerBase player)
bool DeactivateCondition(PlayerBase player)
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
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 proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].