8 static const string FIREPOINT_ACTION_SELECTION =
"fireplace_action";
9 static const string FIREPOINT_FIRE_POSITION =
"fireplace_point";
10 static const string FIREPOINT_PLACE_ROT =
"fireplace_rot";
11 static const string FIREPOINT_SMOKE_POSITION =
"fireplace_smoke";
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);
45 ctx.Write(m_SmokePosX);
46 ctx.Write(m_SmokePosY);
47 ctx.Write(m_SmokePosZ);
52 if (!
super.OnStoreLoad(
ctx, version))
64 if (!
ctx.Read(m_SmokePosX))
69 if (!
ctx.Read(m_SmokePosY))
74 if (!
ctx.Read(m_SmokePosZ))
116 if (
object.IsInherited(FireplaceIndoor))
135 return Vector(m_SmokePosX, m_SmokePosY, m_SmokePosZ);
170 case "DirectCookingA":
174 case "DirectCookingB":
178 case "DirectCookingC":
207 if (
edBase.GetFoodStage())
229 case "DirectCookingA":
232 case "DirectCookingB":
235 case "DirectCookingC":
264 cauldron.RemoveAudioVisualsOnClient();
293 return super.CanReceiveItemIntoCargo(
item);
ActionPlaceFireplaceIndoor m_FirePointIndex
void RefreshFireplaceVisuals()
void RemoveFromFireConsumables(FireConsumable fire_consumable)
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.
void SetSmokePointPosition(vector smoke_point_pos)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
vector GetSmokeEffectPosition()
override void EEItemAttached(EntityAI item, string slot_name)
override void ParticleSmallSmokeStart()
override bool CanRemoveFromHands(EntityAI player)
override bool CanPutIntoHands(EntityAI parent)
override void ParticleNormalSmokeStart()
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
override bool IsFireplaceIndoor()
override void OnIgnitedTarget(EntityAI ignited_item)
override bool HasFlammableMaterial()
override bool CanPutInCargo(EntityAI parent)
override bool IsIgnited()
override void OnIgnitedThis(EntityAI fire_source)
static int GetFirePointIndex(string action_selection)
override bool CanReceiveItemIntoCargo(EntityAI item)
void SetFirePointIndex(int fire_point_index)
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
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)
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
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.