Enumerations | |
enum | SoundTypeBottle { POURING = 1 , EMPTYING = 0 } |
enum SoundTypeBottle |
void Bottle_Base | ( | ) |
References m_LiquidEmptyRate, and QUANTITY_EMPTIED_PER_SEC_DEFAULT.
override void EECargoIn | ( | EntityAI | item | ) |
override void EEDelete | ( | EntityAI | parent | ) |
References RemoveAudioVisuals().
override int GetConsumptionPenaltyContext | ( | ) |
no penalty while drinking
string GetEmptyingEndSoundset | ( | ) |
string GetEmptyingEndSoundsetHard | ( | ) |
string GetEmptyingEndSoundsetSoft | ( | ) |
string GetEmptyingEndSoundsetWater | ( | ) |
string GetEmptyingLoopSoundset | ( | ) |
string GetEmptyingLoopSoundsetHard | ( | ) |
string GetEmptyingLoopSoundsetSoft | ( | ) |
string GetEmptyingLoopSoundsetWater | ( | ) |
float GetLiquidEmptyRate | ( | ) |
Returns base liquid empty rate (absolute)..preferrably use the 'GetLiquidThroughputCoef' instead.
References m_LiquidEmptyRate.
string GetPouringSoundset | ( | ) |
override void OnDebugSpawn | ( | ) |
References SetQuantityMax().
override void OnFreezeStateChangeServer | ( | ) |
References Class::CastTo(), CargoBase::GetItem(), CargoBase::GetItemCount(), and GetLiquidType().
Referenced by Entity::SetFrozen().
override void OnRPC | ( | PlayerIdentity | sender, |
int | rpc_type, | ||
ParamsReadContext | ctx | ||
) |
override void OnVariablesSynchronized | ( | ) |
References m_CookingIsBurned, m_CookingIsDone, m_CookingIsEmpty, m_CookingMethod, RefreshAudioVisuals(), and RemoveAudioVisuals().
void ParticleCookingStart | ( | int | particle_id | ) |
References m_ParticleCooking, m_ParticlePlaying, particle_id, ParticleCookingStop(), and ParticleManager().
Referenced by RefreshAudioVisuals().
void ParticleCookingStop | ( | ) |
References GetGame(), ParticleList::INVALID, m_ParticleCooking, and m_ParticlePlaying.
Referenced by ParticleCookingStart(), and RemoveAudioVisuals().
void PlayEmptyingLoopSound | ( | ) |
References GetEmptyingLoopSoundset(), EffectSound::IsSoundPlaying(), m_EmptyingLoopSound, and SEffectManager::PlaySoundOnObject().
Referenced by OnRPC().
void PlayPouringLoopSound | ( | ) |
References Bottle_Base::GetPouringSoundset(), EffectSound::IsSoundPlaying(), m_PouringLoopSound, and SEffectManager::PlaySoundOnObject().
Referenced by OnRPC().
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.
References ParticleList::NONE, PARTICLE_BAKING_DONE, PARTICLE_BAKING_START, PARTICLE_BOILING_DONE, PARTICLE_BOILING_EMPTY, PARTICLE_BOILING_START, PARTICLE_BURNING_DONE, PARTICLE_DRYING_DONE, PARTICLE_DRYING_START, ParticleCookingStart(), SOUND_BOILING_EMPTY, and SoundCookingStart().
Referenced by OnVariablesSynchronized().
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().
void RemoveAudioVisuals | ( | ) |
References ParticleCookingStop(), and SoundCookingStop().
Referenced by EEDelete(), and OnVariablesSynchronized().
override void RemoveAudioVisualsOnClient | ( | ) |
References m_CookingMethod, and Synchronize().
override void SetActions | ( | ) |
References ActionExtinguishFireplaceByLiquid(), and AddAction().
void StopEmptyingLoopSound | ( | ) |
References GetEmptyingEndSoundset(), m_EmptyingLoopSound, SEffectManager::PlaySoundOnObject(), EffectSound::SetAutodestroy(), and EffectSound::SoundStop().
Referenced by OnRPC().
void StopPouringLoopSound | ( | ) |
References m_PouringLoopSound, and EffectSound::SoundStop().
Referenced by OnRPC().
override void Synchronize | ( | ) |
void ~Bottle_Base | ( | ) |
References SEffectManager::DestroyEffect(), m_EmptyingLoopSound, and m_PouringLoopSound.
protected bool m_CookingIsBurned |
Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().
protected bool m_CookingIsDone |
Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().
protected bool m_CookingIsEmpty |
Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().
protected CookingMethodType m_CookingMethod |
Referenced by OnVariablesSynchronized(), RefreshAudioVisualsOnClient(), and RemoveAudioVisualsOnClient().
protected EffectSound m_EmptyingLoopSound |
Referenced by PlayEmptyingLoopSound(), StopEmptyingLoopSound(), and ~Bottle_Base().
float m_LiquidEmptyRate |
Referenced by Bottle_Base(), and GetLiquidEmptyRate().
enum SoundTypeBottle m_ParticleCooking |
Referenced by ParticleCookingStart(), and ParticleCookingStop().
protected int m_ParticlePlaying = ParticleList.INVALID |
Referenced by ParticleCookingStart(), and ParticleCookingStop().
protected EffectSound m_PouringLoopSound |
Referenced by PlayPouringLoopSound(), StopPouringLoopSound(), and ~Bottle_Base().
protected int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_BOILING_DONE = ParticleList.COOKING_BOILING_DONE |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_BOILING_EMPTY = ParticleList.COOKING_BOILING_EMPTY |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_BOILING_START = ParticleList.COOKING_BOILING_START |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE |
Referenced by RefreshAudioVisuals().
protected int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START |
Referenced by RefreshAudioVisuals().
private const float QUANTITY_EMPTIED_PER_SEC_DEFAULT = 200 |
Referenced by Bottle_Base().
const string SOUND_BOILING_EMPTY = "Boiling_SoundSet" |
Referenced by RefreshAudioVisuals().