39 player.IncreaseDiseaseCount();
42 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_SNEEZE);
47 player.DecreaseDiseaseCount();
59 float chanceOfSneeze =
Math.
Clamp(player.GetSingleAgentCountNormalized(
eAgents.INFLUENZA),0.4,0.75);
67 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_SNEEZE);
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 SNEEZE_RND_DIVIDER_SUPPRESSED_MAX
bool DeactivateCondition(PlayerBase player)
const int SNEEZE_RND_DIVIDER_NORMAL_MAX
const int AGENT_THRESHOLD_DEACTIVATE
void OnDeactivate(PlayerBase player)
override string GetDebugText()
const int TEMPORARY_RESISTANCE_TIME
const int SNEEZE_RND_DIVIDER_NORMAL_MIN
const int AGENT_THRESHOLD_ACTIVATE
const int SNEEZE_RND_DIVIDER_SUPPRESSED_MIN
override bool ActivateCondition(PlayerBase player)
void OnActivate(PlayerBase player)
ModifiersManager m_ModifiersManager
void OnTick(PlayerBase player, float deltaT)
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].