47 player.IncreaseDiseaseCount();
49 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom( SymptomIDs.SYMPTOM_VOMIT );
64 player.DecreaseDiseaseCount();
69 float stomach_volume = player.m_PlayerStomach.GetStomachVolume();
74 if (roll < chanceOfVomit)
76 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
83 player.m_AgentPool.ReduceAgent(
eAgents.SALMONELLA, 30.0);
105 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_PAIN_LIGHT);
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
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
static ref Param1< float > PARAM1_FLOAT
override string GetDebugText()
bool DeactivateCondition(PlayerBase player)
static const float EVENT_INTERVAL_MIN
static const int WATER_DRAIN_FROM_VOMIT
void OnTick(PlayerBase player, float deltaT)
static const int CHANCE_OF_VOMIT
static const int ENERGY_DRAIN_FROM_VOMIT
static const float STOMACH_MIN_VOLUME
void OnDeactivate(PlayerBase player)
static const float EVENT_INTERVAL_MAX
bool ActivateCondition(PlayerBase player)
static const int AGENT_THRESHOLD_ACTIVATE
static const int AGENT_THRESHOLD_DEACTIVATE
static const int CHANCE_OF_VOMIT_AGENT
void OnActivate(PlayerBase player)
void SetDuration(float duration)
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].