48 player.IncreaseDiseaseCount();
53 player.DecreaseDiseaseCount();
70 float stomach_volume = player.m_PlayerStomach.GetStomachVolume();
75 if( roll < chance_of_vomit )
77 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom( SymptomIDs.SYMPTOM_VOMIT );
98 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_PAIN_LIGHT);
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
static const int CHANCE_OF_VOMIT_AGENT
static const float STOMACH_MIN_VOLUME
static const int AGENT_THRESHOLD_ACTIVATE
override string GetDebugText()
static const int WATER_DRAIN_FROM_VOMIT
static const float EVENT_INTERVAL_MIN
static const int CHANCE_OF_VOMIT
override protected void OnDeactivate(PlayerBase player)
override protected bool DeactivateCondition(PlayerBase player)
static const int AGENT_THRESHOLD_DEACTIVATE
override protected void OnActivate(PlayerBase player)
override protected bool ActivateCondition(PlayerBase player)
static const int ENERGY_DRAIN_FROM_VOMIT
override protected void OnTick(PlayerBase player, float deltaT)
static const float EVENT_INTERVAL_MAX
void SetDuration(float duration)
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].