25 RegisterNetSyncVariableFloat(
"m_SmokePosX", 0, 0, 2 );
26 RegisterNetSyncVariableFloat(
"m_SmokePosY", 0, 0, 2 );
27 RegisterNetSyncVariableFloat(
"m_SmokePosZ", 0, 0, 2 );
28 RegisterNetSyncVariableInt(
"m_FirePointIndex", 0, 9 );
43 super.OnStoreSave( ctx );
56 if ( !super.OnStoreLoad( ctx, version ) )
94 int index_location = action_selection.
Length() - 1;
108 fire_point_pos_world = building.ModelToWorld( fire_point_pos );
109 fire_point_rot_world = building.ModelToWorld( fire_point_rot );
116 for (
int i = 0; i < nearest_objects.Count(); ++i )
118 Object object = nearest_objects.Get( i );
166 if (!super.CanReleaseAttachment(attachment))
182 super.EEItemAttached(item, slot_name);
192 bool edible_base_attached =
false;
195 case "DirectCookingA":
197 edible_base_attached =
true;
201 edible_base_attached =
true;
205 edible_base_attached =
true;
214 super.EEItemDetached(item, slot_name);
228 case "DirectCookingA":
241 if (item_base.IsCookware())
244 item_base.RemoveAudioVisualsOnClient();
247 if (item_base.IsLiquidContainer())
248 item_base.RemoveAudioVisualsOnClient();
void RefreshFireplaceVisuals()
void RemoveFromFireConsumables(FireConsumable fire_consumable)
ref UniversalTemperatureSourceSettings m_UTSSettings
override void CheckForDestroy()
Particle m_ParticleSmallSmoke
void AddToFireConsumables(ItemBase item)
bool IsFuel(ItemBase item)
Returns if item attached to fireplace is fuel.
int PARTICLE_NORMAL_SMOKE
void StartFire(bool force_start=false)
ItemBase m_DirectCookingSlots[DIRECT_COOKING_SLOT_COUNT]
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.
Particle m_ParticleNormalSmoke
void PlayParticle(int particle_id=-1)
Method to tell the particle to start playing.
proto native void GetObjectsAtPosition3D(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in sphere "radius" around position "pos".
void SetSmokePointPosition(vector smoke_point_pos)
override bool CanRemoveFromHands(EntityAI parent)
static const string OVENPOINT_PLACE_ROT
static const string OVENPOINT_ACTION_SELECTION
override bool CanIgniteItem(EntityAI ignite_target=NULL)
vector GetSmokeEffectPosition()
override void EEItemAttached(EntityAI item, string slot_name)
override void ParticleSmallSmokeStart()
static const string OVENPOINT_FIRE_POSITION
override bool CanPutIntoHands(EntityAI parent)
override void ParticleNormalSmokeStart()
override bool IsIndoorOven()
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
override bool HasFlammableMaterial()
override bool CanPutInCargo(EntityAI parent)
override void OnIgnitedTarget(EntityAI target_item)
override bool IsIgnited()
override void OnIgnitedThis(EntityAI fire_source)
static int GetFirePointIndex(string action_selection)
void SetFirePointIndex(int fire_point_index)
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
static const string OVENPOINT_SMOKE_POSITION
static bool CanPlaceFireplaceInSelectedSpot(Object building, int fire_point_index, out vector fire_point_pos_world, out vector fire_point_rot_world)
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 CanReleaseAttachment(EntityAI attachment)
static const int BARREL_FIRE_STEAM_2END
static const int OVEN_NORMAL_FIRE
static const int OVEN_SMALL_FIRE
static const int HOUSE_NORMAL_SMOKE
static const int HOUSE_SMALL_SMOKE
static const int OVEN_FIRE_START
static const int OVEN_FIRE_END
proto bool Write(void value_out)
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsReadContext
proto native CGame GetGame()
Serializer ParamsWriteContext
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
proto native int Length()
Returns length of string.
proto native int ToInt()
Converts string to integer.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.