22 RegisterNetSyncVariableBool(
"m_CookingIsDone" );
23 RegisterNetSyncVariableBool(
"m_CookingIsEmpty" );
24 RegisterNetSyncVariableBool(
"m_CookingIsBurned" );
50 if ( !super.CanPutInCargo( parent ) )
57 if (parent && !parent.GetInventory().AreChildrenAccessible())
65 if ( !super.CanReceiveItemIntoCargo( item ) )
72 if (!GetInventory().AreChildrenAccessible())
77 for (
int i = 0; i < GetInventory().GetSlotIdCount(); i++)
79 slotId = GetInventory().GetSlotId(i);
80 if (item.GetInventory().HasAttachmentSlot(slotId))
92 if ( !super.CanLoadItemIntoCargo( item ) )
100 for (
int i = 0; i < GetInventory().GetSlotIdCount(); i++)
102 slotId = GetInventory().GetSlotId(i);
103 if (item.GetInventory().HasAttachmentSlot(slotId))
125 super.EEDelete( parent );
141 super.OnVariablesSynchronized();
217 vector local_pos = MiscGameplayFunctions.GetSteamPosition( GetHierarchyParent() );
void AddAction(typename actionName)
Wrapper class for managing sound through SEffectManager.
const string SOUND_DRYING_START
DEPRECATED.
override void SetActions()
override bool CanHaveTemperature()
override void RefreshAudioVisualsOnClient(CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
override void RemoveAudioVisualsOnClient()
const string SOUND_DRYING_DONE
DEPRECATED.
void ParticleCookingStop()
override bool IsContainer()
const string SOUND_BAKING_START
DEPRECATED.
override bool CanLoadItemIntoCargo(EntityAI item)
void RemoveAudioVisuals()
Particle m_ParticleCooking
int PARTICLE_BAKING_START
const string SOUND_BURNING_DONE
DEPRECATED.
void RefreshAudioVisuals(CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
override bool CanReceiveItemIntoCargo(EntityAI item)
const string SOUND_BAKING_DONE
DEPRECATED.
void SoundCookingStart(string sound_name)
DEPRECATED.
override bool IsCookware()
void ParticleCookingStart(int particle_id)
override bool CanPutInCargo(EntityAI parent)
void SoundCookingStop()
DEPRECATED.
CookingMethodType m_CookingMethod
int PARTICLE_BURNING_DONE
EffectSound m_SoundEffectCooking
DEPRECATED.
override float GetQuantityNormalizedScripted()
string m_SoundPlaying
DEPRECATED.
override void EEDelete(EntityAI parent)
override void OnVariablesSynchronized()
SoundOnVehicle m_SoundCooking
int PARTICLE_DRYING_START
Legacy way of using particles in the game.
static Particle PlayInWorld(int particle_id, vector global_pos)
Creates a particle emitter on the given position and activates it.
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
proto native CGame GetGame()
bool IsCargoException4x3(EntityAI item)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)