Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
bottle_base.c File Reference

Go to the source code of this file.

Enumerations

enum  SoundTypeBottle { POURING = 1 , EMPTYING = 0 }

Functions

void ~Bottle_Base ()
void Bottle_Base ()
override void EECargoIn (EntityAI item)
override void EEDelete (EntityAI parent)
override int GetConsumptionPenaltyContext ()
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.
string GetPouringSoundset ()
override void OnDebugSpawn ()
override void OnFreezeStateChangeServer ()
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
override void OnVariablesSynchronized ()
void ParticleCookingStart (int particle_id)
void ParticleCookingStop ()
void PlayEmptyingLoopSound ()
void PlayPouringLoopSound ()
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.
override void RefreshAudioVisualsOnClient (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 cooking-related effect methods
void RemoveAudioVisuals ()
override void RemoveAudioVisualsOnClient ()
override void SetActions ()
void StopEmptyingLoopSound ()
void StopPouringLoopSound ()
override void Synchronize ()

Variables

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

Enumeration Type Documentation

◆ SoundTypeBottle

Enumerator
POURING 
EMPTYING 

Definition at line 1 of file bottle_base.c.

Function Documentation

◆ ~Bottle_Base()

void ~Bottle_Base ( )
private

◆ Bottle_Base()

void Bottle_Base ( )
private

Definition at line 42 of file bottle_base.c.

References m_LiquidEmptyRate, and QUANTITY_EMPTIED_PER_SEC_DEFAULT.

◆ EECargoIn()

override void EECargoIn ( EntityAI item)
private

Definition at line 66 of file bottle_base.c.

◆ EEDelete()

override void EEDelete ( EntityAI parent)
private

Definition at line 58 of file bottle_base.c.

References RemoveAudioVisuals().

◆ GetConsumptionPenaltyContext()

override int GetConsumptionPenaltyContext ( )
private

no penalty while drinking

Definition at line 89 of file bottle_base.c.

◆ GetEmptyingEndSoundset()

◆ GetEmptyingEndSoundsetHard()

string GetEmptyingEndSoundsetHard ( )
private

◆ GetEmptyingEndSoundsetSoft()

string GetEmptyingEndSoundsetSoft ( )
private

◆ GetEmptyingEndSoundsetWater()

string GetEmptyingEndSoundsetWater ( )
private

◆ GetEmptyingLoopSoundset()

◆ GetEmptyingLoopSoundsetHard()

string GetEmptyingLoopSoundsetHard ( )
private

◆ GetEmptyingLoopSoundsetSoft()

string GetEmptyingLoopSoundsetSoft ( )
private

◆ GetEmptyingLoopSoundsetWater()

string GetEmptyingLoopSoundsetWater ( )
private

◆ GetLiquidEmptyRate()

float GetLiquidEmptyRate ( )
private

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

Definition at line 349 of file bottle_base.c.

References m_LiquidEmptyRate.

◆ GetPouringSoundset()

string GetPouringSoundset ( )
private

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
private

Definition at line 374 of file bottle_base.c.

References SetQuantityMax().

◆ OnFreezeStateChangeServer()

override void OnFreezeStateChangeServer ( )
private

◆ OnRPC()

override void OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
private

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
private

◆ ParticleCookingStart()

void ParticleCookingStart ( int particle_id)
private

◆ ParticleCookingStop()

void ParticleCookingStop ( )
private

◆ PlayEmptyingLoopSound()

void PlayEmptyingLoopSound ( )
private

Definition at line 275 of file bottle_base.c.

References GetEmptyingLoopSoundset(), m_EmptyingLoopSound, and SEffectManager::PlaySoundOnObject().

Referenced by OnRPC().

◆ PlayPouringLoopSound()

void PlayPouringLoopSound ( )
private

◆ RefreshAudioVisuals()

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

Remnants of old, responsible for particles and some (empty) sounds. Cooked items take care of the rest themselves.

Definition at line 169 of file bottle_base.c.

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().

◆ RefreshAudioVisualsOnClient()

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

cooking-related effect methods

Definition at line 158 of file bottle_base.c.

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

◆ RemoveAudioVisuals()

void RemoveAudioVisuals ( )
private

Definition at line 227 of file bottle_base.c.

References ParticleCookingStop(), and SoundCookingStop().

Referenced by EEDelete(), and OnVariablesSynchronized().

◆ RemoveAudioVisualsOnClient()

override void RemoveAudioVisualsOnClient ( )
private

Definition at line 151 of file bottle_base.c.

References m_CookingMethod, and Synchronize().

◆ SetActions()

override void SetActions ( )
private

Definition at line 354 of file bottle_base.c.

References ActionExtinguishFireplaceByLiquid(), and AddAction().

◆ StopEmptyingLoopSound()

void StopEmptyingLoopSound ( )
private

◆ StopPouringLoopSound()

void StopPouringLoopSound ( )
private

Definition at line 269 of file bottle_base.c.

References m_PouringLoopSound.

Referenced by OnRPC().

◆ Synchronize()

override void Synchronize ( )
private

Definition at line 102 of file bottle_base.c.

Variable Documentation

◆ m_CookingIsBurned

bool m_CookingIsBurned
protected

Definition at line 34 of file bottle_base.c.

Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().

◆ m_CookingIsDone

bool m_CookingIsDone
protected

Definition at line 32 of file bottle_base.c.

Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().

◆ m_CookingIsEmpty

bool m_CookingIsEmpty
protected

Definition at line 33 of file bottle_base.c.

Referenced by OnVariablesSynchronized(), and RefreshAudioVisualsOnClient().

◆ m_CookingMethod

CookingMethodType m_CookingMethod
protected

◆ m_EmptyingLoopSound

EffectSound m_EmptyingLoopSound
protected

Definition at line 28 of file bottle_base.c.

Referenced by ~Bottle_Base(), PlayEmptyingLoopSound(), and StopEmptyingLoopSound().

◆ m_LiquidEmptyRate

float m_LiquidEmptyRate
protected

Definition at line 39 of file bottle_base.c.

Referenced by Bottle_Base(), and GetLiquidEmptyRate().

◆ m_ParticleCooking

enum SoundTypeBottle m_ParticleCooking

◆ m_ParticlePlaying

int m_ParticlePlaying = ParticleList.INVALID
protected

Definition at line 11 of file bottle_base.c.

Referenced by ParticleCookingStart(), and ParticleCookingStop().

◆ m_PouringLoopSound

EffectSound m_PouringLoopSound
protected

Definition at line 27 of file bottle_base.c.

Referenced by ~Bottle_Base(), PlayPouringLoopSound(), and StopPouringLoopSound().

◆ PARTICLE_BAKING_DONE

int PARTICLE_BAKING_DONE = ParticleList.COOKING_BAKING_DONE
protected

Definition at line 19 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BAKING_START

int PARTICLE_BAKING_START = ParticleList.COOKING_BAKING_START
protected

Definition at line 18 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_DONE

int PARTICLE_BOILING_DONE = ParticleList.COOKING_BOILING_DONE
protected

Definition at line 16 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_EMPTY

int PARTICLE_BOILING_EMPTY = ParticleList.COOKING_BOILING_EMPTY
protected

Definition at line 14 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BOILING_START

int PARTICLE_BOILING_START = ParticleList.COOKING_BOILING_START
protected

Definition at line 15 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_BURNING_DONE

int PARTICLE_BURNING_DONE = ParticleList.COOKING_BURNING_DONE
protected

Definition at line 24 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_DRYING_DONE

int PARTICLE_DRYING_DONE = ParticleList.COOKING_DRYING_DONE
protected

Definition at line 22 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ PARTICLE_DRYING_START

int PARTICLE_DRYING_START = ParticleList.COOKING_DRYING_START
protected

Definition at line 21 of file bottle_base.c.

Referenced by RefreshAudioVisuals().

◆ QUANTITY_EMPTIED_PER_SEC_DEFAULT

const float QUANTITY_EMPTIED_PER_SEC_DEFAULT = 200
private

Definition at line 40 of file bottle_base.c.

Referenced by Bottle_Base().

◆ SOUND_BOILING_EMPTY

const string SOUND_BOILING_EMPTY = "Boiling_SoundSet"
protected

Definition at line 37 of file bottle_base.c.

Referenced by RefreshAudioVisuals().