45 RegisterNetSyncVariableBool(
"m_CookingIsDone");
46 RegisterNetSyncVariableBool(
"m_CookingIsEmpty");
47 RegisterNetSyncVariableBool(
"m_CookingIsBurned");
60 super.EEDelete( parent );
68 super.EECargoIn(item);
70 MiscGameplayFunctions.SoakItemInsideParentContainingLiquidAboveThreshold(
ItemBase.Cast(item),
this);
75 super.OnFreezeStateChangeServer();
82 for (
int i = 0; i < count; ++i)
84 MiscGameplayFunctions.SoakItemInsideParentContainingLiquidAboveThreshold(
ItemBase.Cast(cargo.
GetItem(i)),
this);
109 super.OnRPC(sender, rpc_type, ctx);
111 Param1<bool> p =
new Param1<bool>(
false);
116 bool play = p.param1;
139 super.OnVariablesSynchronized();
171 string soundName =
"";
174 switch (cooking_method)
243 vector localPos = MiscGameplayFunctions.GetSteamPosition(GetHierarchyParent());
296 string soundSet =
"";
308 else if (
GetGame().SurfaceIsPond(pos[0], pos[2]) ||
GetGame().SurfaceIsSea(pos[0], pos[2]))
320 string soundSet =
"";
332 else if (
GetGame().SurfaceIsPond(pos[0], pos[2]) ||
GetGame().SurfaceIsSea(pos[0], pos[2]))
ActionExtinguishFireplaceByLiquidCB ActionContinuousBaseCB ActionExtinguishFireplaceByLiquid()
void AddAction(typename actionName)
override void OnVariablesSynchronized()
override void OnFreezeStateChangeServer()
override void EECargoIn(EntityAI item)
EffectSound m_PouringLoopSound
void StopEmptyingLoopSound()
void StopPouringLoopSound()
int PARTICLE_BOILING_DONE
string GetEmptyingEndSoundset()
EffectSound m_EmptyingLoopSound
int PARTICLE_DRYING_START
void RemoveAudioVisuals()
int PARTICLE_BAKING_START
const float QUANTITY_EMPTIED_PER_SEC_DEFAULT
void ParticleCookingStart(int particle_id)
void PlayEmptyingLoopSound()
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 res...
int PARTICLE_BURNING_DONE
string GetEmptyingLoopSoundset()
CookingMethodType m_CookingMethod
int PARTICLE_BOILING_EMPTY
float GetLiquidEmptyRate()
Returns base liquid empty rate (absolute)..preferrably use the 'GetLiquidThroughputCoef' instead.
enum SoundTypeBottle m_ParticleCooking
void ParticleCookingStop()
void PlayPouringLoopSound()
int PARTICLE_BOILING_START
const string SOUND_BOILING_EMPTY
override void EEDelete(EntityAI parent)
EConsumptionPenaltyContext
void SoundCookingStart(string sound_name)
int GetConsumptionPenaltyContext()
void RefreshAudioVisualsOnClient(CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
cooking-related effect methods
void RemoveAudioVisualsOnClient()
override int GetLiquidType()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
override void OnRPC(ParamsReadContext ctx)
override string GetEmptyingEndSoundsetWater()
override void OnDebugSpawn()
override string GetEmptyingLoopSoundsetWater()
override string GetEmptyingLoopSoundsetHard()
override string GetEmptyingEndSoundsetSoft()
override string GetEmptyingLoopSoundsetSoft()
override string GetEmptyingEndSoundsetHard()
override string GetPouringSoundset()
bool IsSurfaceDigable(string surface)
Checks if the surface is digable.
proto native DayZPlayer GetPlayer()
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
Super root of all classes in Enforce script.
string GetSurfaceType(SurfaceAnimationBone limbType)
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Wrapper class for managing sound through SEffectManager.
Legacy way of using particles in the game.
static const int COOKING_DRYING_DONE
static const int COOKING_BOILING_DONE
static const int COOKING_BOILING_EMPTY
static const int COOKING_DRYING_START
static const int COOKING_BOILING_START
static const int COOKING_BAKING_START
static const int COOKING_BURNING_DONE
static const int COOKING_BAKING_DONE
The class that will be instanced (moddable)
static EffectSound PlaySoundOnObject(string sound_set, Object parent_object, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)
proto bool Read(void value_in)
Serializer ParamsReadContext
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
class JsonUndergroundAreaTriggerData GetPosition