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 );
44 super.OnStoreSave( ctx );
57 if ( !super.OnStoreLoad( ctx, version ) )
95 int index_location = action_selection.
Length() - 1;
109 fire_point_pos_world = building.ModelToWorld( fire_point_pos );
110 fire_point_rot_world = building.ModelToWorld( fire_point_rot );
117 for (
int i = 0; i < nearest_objects.Count(); ++i )
119 Object object = nearest_objects.Get( i );
167 super.EEItemAttached(item, slot_name);
176 bool edible_base_attached =
false;
179 case "DirectCookingA":
181 edible_base_attached =
true;
183 case "DirectCookingB":
185 edible_base_attached =
true;
187 case "DirectCookingC":
189 edible_base_attached =
true;
194 edible_base_attached =
true;
198 edible_base_attached =
true;
202 edible_base_attached =
true;
206 edible_base_attached =
true;
215 super.EEItemDetached(item, slot_name);
229 case "DirectCookingA":
232 case "DirectCookingB":
235 case "DirectCookingC":
254 if (item_base.IsCookware())
257 item_base.RemoveAudioVisualsOnClient();
260 if (item_base.IsLiquidContainer())
261 item_base.RemoveAudioVisualsOnClient();
283 return super.CanReceiveItemIntoCargo( item );
341 Param1<bool> failure;
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 SetIgniteFailure(bool failure)
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".
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
override bool CanReceiveItemIntoCargo(EntityAI item)
vector GetSmokeEffectPosition()
override void EEItemAttached(EntityAI item, string slot_name)
static bool CanPlaceFireplaceInSelectedSpot(Object building, int fire_point_index, out vector fire_point_pos_world, out vector fire_point_rot_world)
void SetSmokePointPosition(vector smoke_point_pos)
override bool IsIgnited()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override void EEItemDetached(EntityAI item, string slot_name)
override bool CanPutIntoHands(EntityAI parent)
static const string FIREPOINT_PLACE_ROT
static int GetFirePointIndex(string action_selection)
override void OnIgnitedTarget(EntityAI target_item)
static const string FIREPOINT_FIRE_POSITION
override void ParticleSmallSmokeStart()
static const string FIREPOINT_ACTION_SELECTION
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
void SetFirePointIndex(int fire_point_index)
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
override bool HasFlammableMaterial()
override void ParticleNormalSmokeStart()
static const string FIREPOINT_SMOKE_POSITION
override bool CanRemoveFromCargo(EntityAI parent)
override void OnStoreSave(ParamsWriteContext ctx)
override bool CanRemoveFromHands(EntityAI parent)
override bool IsFireplaceIndoor()
override bool CanPutInCargo(EntityAI parent)
override void OnIgnitedThis(EntityAI fire_source)
static const int HOUSE_NORMAL_FIRE
static const int HOUSE_FIRE_STEAM_2END
static const int HOUSE_NORMAL_SMOKE
static const int HOUSE_SMALL_FIRE
static const int HOUSE_FIRE_END
static const int HOUSE_FIRE_START
static const int HOUSE_SMALL_SMOKE
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.