42 player.IncreaseDiseaseCount();
56 player.DecreaseDiseaseCount();
61 int agentCount = player.m_AgentPool.GetSingleAgentCount(
eAgents.FOOD_POISON);
65 int agentMax = PluginTransmissionAgents.GetAgentMaxCount(
eAgents.FOOD_POISON);
67 float invertedAgentCountValue =
Math.
InverseLerp(0, agentMax, agentCount);
69 chance = (chance / 300) * deltaT;
73 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
80 player.m_AgentPool.ReduceAgent(
eAgents.FOOD_POISON, 60);
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
bool m_IsPersistent
should this modifier track overall time it was active ?
const int DEFAULT_TICK_TIME_INACTIVE
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
static ref Param1< float > PARAM1_FLOAT
override string GetDebugText()
override void OnTick(PlayerBase player, float deltaT)
override void OnDeactivate(PlayerBase player)
static const int VOMIT_OCCURRENCES_PER_HOUR_MIN
DEPRECATED.
static const int VOMIT_OCCURRENCES_MIN
static const int WATER_DRAIN_FROM_VOMIT
static const int VOMIT_OCCURRENCES_MAX
override bool DeactivateCondition(PlayerBase player)
static const int VOMIT_OCCURRENCES_PER_HOUR_MAX
override void OnActivate(PlayerBase player)
static const int AGENT_THRESHOLD_DEACTIVATE
override bool ActivateCondition(PlayerBase player)
static const int ENERGY_DRAIN_FROM_VOMIT
override void OnReconnect(PlayerBase player)
static const int AGENT_THRESHOLD_ACTIVATE
void SetDuration(float duration)
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...