36 if (
GetGame().IsServer() && !m_ContactEventProcessing &&
dBodyIsActive(
this) && !IsSetForDeletion())
38 m_ContactEventProcessing =
true;
41 m_ContactEventProcessing =
false;
56 if (FindAttachmentBySlotName(
"CookingTripod") ||
IsOven())
68 if (
item.IsKindOf(
"Edible_Base"))
78 if (!
IsOven() && !GetHierarchyParent())
86 if (!GetHierarchyParent() && !
IsBurning())
99 if (
slot_name !=
"CookingEquipment" || FindAttachmentBySlotName(
"CookingTripod"))
128 if (
item.IsKindOf(
"Edible_Base"))
134 if ( GetHierarchyParent() ==
NULL)
141 if (GetHierarchyParent() )
204 case "DirectCookingA":
208 case "DirectCookingB":
212 case "DirectCookingC":
241 if (
edBase.GetFoodStage())
284 cauldron.RemoveAudioVisualsOnClient();
298 case "DirectCookingA":
301 case "DirectCookingB":
304 case "DirectCookingC":
336 stand.LockToParent();
338 stand.UnlockFromParent();
344 super.OnBeforeTryDelete();
358 if (!
super.CanPutInCargo(parent))
375 if (GetHierarchyParent())
378 return super.CanReceiveItemIntoCargo(
item);
386 if (GetHierarchyParent())
395 if (!
super.CanPutIntoHands(parent))
450 super.RefreshPhysics();
481 if (
GetGame().SaveVersion() >= 110)
493 if (!
super.OnStoreLoad(
ctx, version))
516 super.AfterStoreLoad();
579 else if (
fire_source.ClassName() ==
"HandDrillKit")
657 if (!
GetGame().IsMultiplayer())
660 entity.GetInventory().GetCurrentInventoryLocation(
loc);
702 return "placeFireplace_SoundSet";
ActionBuildOvenCB ActionContinuousBaseCB ActionBuildOven()
ActionBuildStoneCircleCB ActionContinuousBaseCB ActionBuildStoneCircle()
ActionDismantleOvenCB ActionContinuousBaseCB ActionDismantleOven()
ActionDismantleStoneCircleCB ActionContinuousBaseCB ActionDismantleStoneCircle()
void AddAction(typename actionName)
const int ECE_PLACE_ON_SURFACE
Container_Base m_HalfExtents
void RefreshFireplaceVisuals()
void RemoveFromFireConsumables(FireConsumable fire_consumable)
static bool IsEntityOnInteriorSurface(notnull EntityAI entity_ai)
const string ANIMATION_OVEN
bool IsCeilingHighEnoughForSmoke()
void AddToFireConsumables(ItemBase item)
const string OBJECT_CLUTTER_CUTTER
const string ANIMATION_CAULDRON_HANDLE
const string ANIMATION_TRIPOD
bool IsFuel(ItemBase item)
Returns if item attached to fireplace is fuel.
bool IsOnInteriorSurface()
int PARTICLE_NORMAL_SMOKE
void StartFire(bool force_start=false)
ItemBase m_DirectCookingSlots[DIRECT_COOKING_SLOT_COUNT]
void SetIgniteFailure(bool failure)
const string ANIMATION_COOKWARE_HANDLE
void ClearCookingEquipment()
DEPRECATED.
FireConsumable GetFireConsumableByItem(ItemBase item)
ItemBase m_SmokingSlots[SMOKING_SLOT_COUNT]
bool IsKindling(ItemBase item)
Returns if item attached to fireplace is kindling.
bool IsItemTypeAttached(typename item_type)
class JsonUndergroundAreaTriggerData GetPosition
override void OnBeforeTryDelete()
void ContactEvent(IEntity other, vector position)
override void SetActions()
override bool IsBaseFireplace()
override string GetPlaceSoundset()
static Fireplace IgniteEntityAsFireplace(notnull EntityAI entity, notnull EntityAI fire_source)
override void EOnTouch(IEntity other, int extra)
override void EOnContact(IEntity other, Contact extra)
override void RefreshFireplacePhysics()
override bool CanIgniteItem(EntityAI ignite_target=NULL)
override void EEItemAttached(EntityAI item, string slot_name)
override bool IsPrepareToDelete()
override void SetCookingEquipment(ItemBase equipment)
override void RefreshPhysics()
override bool CanPutIntoHands(EntityAI parent)
override bool CanShowSmoke()
void DestroyClutterCutter(Object clutter_cutter)
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
bool m_ContactEventProcessing
override bool CanDisplayAttachmentSlot(int slot_id)
override void OnIgnitedTarget(EntityAI ignited_item)
override bool HasFlammableMaterial()
override bool CanPutInCargo(EntityAI parent)
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
override bool CanLoadAttachment(EntityAI attachment)
override bool IsIgnited()
override void OnIgnitedThis(EntityAI fire_source)
override bool CanAssignAttachmentsToQuickbar()
static bool CanIgniteEntityAsFireplace(notnull EntityAI entity)
override bool CanReceiveItemIntoCargo(EntityAI item)
override void AfterStoreLoad()
override float HeightStartCheckOverride()
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override void EEItemDetached(EntityAI item, string slot_name)
override bool CanRemoveFromCargo(EntityAI parent)
override void OnStoreSave(ParamsWriteContext ctx)
override bool CanDisplayAttachmentCategory(string category_name)
override bool CanReleaseAttachment(EntityAI attachment)
override bool CanLoadItemIntoCargo(EntityAI item)
provides access to slot configuration
static proto native owned string GetSlotName(int id)
converts slot_id to string
static const int CAMP_SMALL_SMOKE
static const int CAMP_FIRE_START
static const int CAMP_NORMAL_SMOKE
static const int CAMP_STEAM_2END
static const int CAMP_SMALL_FIRE
static const int CAMP_FIRE_END
static const int CAMP_NORMAL_FIRE
Serialization general interface. Serializer API works with:
static void SendPlayerIgnatedFireplace(Man player, EFireIgniteType ignite_type)
proto native CGame GetGame()
EntityEvent
Entity events for event-mask, or throwing event from code.
proto native bool dBodyIsActive(notnull IEntity ent)