PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Bottle_Base.c File Reference

Enumerations

enum  SoundTypeBottle { POURING = 1 , EMPTYING = 0 }
 

Functions

void Bottle_Base ()
 
void ~Bottle_Base ()
 
override void EEDelete (EntityAI parent)
 
override void EECargoIn (EntityAI item)
 
override void OnFreezeStateChangeServer ()
 
override int GetConsumptionPenaltyContext ()
 
override void Synchronize ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
override void OnVariablesSynchronized ()
 
override void RemoveAudioVisualsOnClient ()
 
override void RefreshAudioVisualsOnClient (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 cooking-related effect methods
 
void RefreshAudioVisuals (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 Remnants of old, responsible for particles and some (empty) sounds. Cooked items take care of the rest themselves.
 
void RemoveAudioVisuals ()
 
void ParticleCookingStart (int particle_id)
 
void ParticleCookingStop ()
 
void PlayPouringLoopSound ()
 
void StopPouringLoopSound ()
 
void PlayEmptyingLoopSound ()
 
void StopEmptyingLoopSound ()
 
string GetEmptyingLoopSoundset ()
 
string GetEmptyingEndSoundset ()
 
string GetPouringSoundset ()
 
string GetEmptyingLoopSoundsetHard ()
 
string GetEmptyingLoopSoundsetSoft ()
 
string GetEmptyingLoopSoundsetWater ()
 
string GetEmptyingEndSoundsetHard ()
 
string GetEmptyingEndSoundsetSoft ()
 
string GetEmptyingEndSoundsetWater ()
 
float GetLiquidEmptyRate ()
 Returns base liquid empty rate (absolute)..preferrably use the 'GetLiquidThroughputCoef' instead.
 
override void SetActions ()
 
override void OnDebugSpawn ()
 

Variables

enum SoundTypeBottle m_ParticleCooking
 
protected int m_ParticlePlaying = ParticleList.INVALID
 
protected int PARTICLE_BOILING_EMPTY = ParticleList.COOKING_BOILING_EMPTY
 
protected int PARTICLE_BOILING_START = ParticleList.COOKING_BOILING_START
 
protected int PARTICLE_BOILING_DONE = ParticleList.COOKING_BOILING_DONE
 
protected int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START
 
protected int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE
 
protected int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START
 
protected int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE
 
protected int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE
 
protected EffectSound m_PouringLoopSound
 
protected EffectSound m_EmptyingLoopSound
 
protected CookingMethodType m_CookingMethod
 
protected bool m_CookingIsDone
 
protected bool m_CookingIsEmpty
 
protected bool m_CookingIsBurned
 
const string SOUND_BOILING_EMPTY = "Boiling_SoundSet"
 
float m_LiquidEmptyRate
 
private const float QUANTITY_EMPTIED_PER_SEC_DEFAULT = 200
 

Enumeration Type Documentation

◆ SoundTypeBottle

Enumerator
POURING 
EMPTYING 

Function Documentation

◆ Bottle_Base()

◆ EECargoIn()

override void EECargoIn ( EntityAI  item)

◆ EEDelete()

override void EEDelete ( EntityAI  parent)

References RemoveAudioVisuals().

◆ GetConsumptionPenaltyContext()

override int GetConsumptionPenaltyContext ( )

no penalty while drinking

◆ GetEmptyingEndSoundset()

◆ GetEmptyingEndSoundsetHard()

string GetEmptyingEndSoundsetHard ( )

◆ GetEmptyingEndSoundsetSoft()

string GetEmptyingEndSoundsetSoft ( )

◆ GetEmptyingEndSoundsetWater()

string GetEmptyingEndSoundsetWater ( )

◆ GetEmptyingLoopSoundset()

◆ GetEmptyingLoopSoundsetHard()

string GetEmptyingLoopSoundsetHard ( )

◆ GetEmptyingLoopSoundsetSoft()

string GetEmptyingLoopSoundsetSoft ( )

◆ GetEmptyingLoopSoundsetWater()

string GetEmptyingLoopSoundsetWater ( )

◆ GetLiquidEmptyRate()

float GetLiquidEmptyRate ( )

Returns base liquid empty rate (absolute)..preferrably use the 'GetLiquidThroughputCoef' instead.

References m_LiquidEmptyRate.

◆ GetPouringSoundset()

string GetPouringSoundset ( )

◆ OnDebugSpawn()

override void OnDebugSpawn ( )

References SetQuantityMax().

◆ OnFreezeStateChangeServer()

override void OnFreezeStateChangeServer ( )

◆ OnRPC()

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

◆ ParticleCookingStart()

void ParticleCookingStart ( int  particle_id)

◆ ParticleCookingStop()

void ParticleCookingStop ( )

◆ PlayEmptyingLoopSound()

◆ PlayPouringLoopSound()

◆ RefreshAudioVisuals()

void RefreshAudioVisuals ( CookingMethodType  cooking_method,
bool  is_done,
bool  is_empty,
bool  is_burned 
)

◆ RefreshAudioVisualsOnClient()

override void RefreshAudioVisualsOnClient ( CookingMethodType  cooking_method,
bool  is_done,
bool  is_empty,
bool  is_burned 
)

cooking-related effect methods

References m_CookingIsBurned, m_CookingIsDone, m_CookingIsEmpty, m_CookingMethod, and Synchronize().

◆ RemoveAudioVisuals()

void RemoveAudioVisuals ( )

◆ RemoveAudioVisualsOnClient()

override void RemoveAudioVisualsOnClient ( )

References m_CookingMethod, and Synchronize().

◆ SetActions()

override void SetActions ( )

◆ StopEmptyingLoopSound()

◆ StopPouringLoopSound()

void StopPouringLoopSound ( )

References m_PouringLoopSound, and EffectSound::SoundStop().

Referenced by OnRPC().

◆ Synchronize()

override void Synchronize ( )

◆ ~Bottle_Base()

Variable Documentation

◆ m_CookingIsBurned

protected bool m_CookingIsBurned

◆ m_CookingIsDone

protected bool m_CookingIsDone

◆ m_CookingIsEmpty

protected bool m_CookingIsEmpty

◆ m_CookingMethod

◆ m_EmptyingLoopSound

protected EffectSound m_EmptyingLoopSound

◆ m_LiquidEmptyRate

float m_LiquidEmptyRate

Referenced by Bottle_Base(), and GetLiquidEmptyRate().

◆ m_ParticleCooking

enum SoundTypeBottle m_ParticleCooking

◆ m_ParticlePlaying

protected int m_ParticlePlaying = ParticleList.INVALID

◆ m_PouringLoopSound

protected EffectSound m_PouringLoopSound

◆ PARTICLE_BAKING_DONE

protected int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BAKING_START

protected int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_DONE

protected int PARTICLE_BOILING_DONE = ParticleList.COOKING_BOILING_DONE

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_EMPTY

protected int PARTICLE_BOILING_EMPTY = ParticleList.COOKING_BOILING_EMPTY

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_START

protected int PARTICLE_BOILING_START = ParticleList.COOKING_BOILING_START

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BURNING_DONE

protected int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE

Referenced by RefreshAudioVisuals().

◆ PARTICLE_DRYING_DONE

protected int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE

Referenced by RefreshAudioVisuals().

◆ PARTICLE_DRYING_START

protected int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START

Referenced by RefreshAudioVisuals().

◆ QUANTITY_EMPTIED_PER_SEC_DEFAULT

private const float QUANTITY_EMPTIED_PER_SEC_DEFAULT = 200

Referenced by Bottle_Base().

◆ SOUND_BOILING_EMPTY

const string SOUND_BOILING_EMPTY = "Boiling_SoundSet"

Referenced by RefreshAudioVisuals().