PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
FireplaceBase.c File Reference

Enumerations

enum  FireplaceFireState {
  NO_FIRE = 1 , START_FIRE = 2 , SMALL_FIRE = 3 , NORMAL_FIRE = 4 ,
  END_FIRE = 5 , EXTINGUISHING_FIRE = 6 , EXTINGUISHED_FIRE = 7 , REIGNITED_FIRE = 8 ,
  COUNT = 9
}
 

Functions

protected void FireplaceBase ()
 
protected void ~FireplaceBase ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnAttachmentRuined (EntityAI attachment)
 
override void EEDelete (EntityAI parent)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
override bool IsFireplace ()
 
bool IsBaseFireplace ()
 
bool IsBarrelWithHoles ()
 
bool IsFireplaceIndoor ()
 
bool IsIndoorOven ()
 
override bool CanHaveWetness ()
 
override bool CanHaveTemperature ()
 
override bool GetCookingTargetTemperature (out float temperature)
 
override bool IsSelfAdjustingTemperature ()
 
protected void InitializeTemperatureSources ()
 
ItemBase GetCookingEquipment ()
 
void SetCookingEquipment (ItemBase equipment)
 
void ClearCookingEquipment (ItemBase pItem)
 
void ClearCookingEquipment ()
 DEPRECATED.
 
bool DirectCookingSlotsInUse ()
 
bool SmokingSlotsInUse ()
 
void DestroyFireplace ()
 [DEPRECATED]
 
override bool IsPrepareToDelete ()
 
override void OnChildItemRemoved (InventoryItem item)
 
override void CheckForDestroy ()
 
void RefreshFireplaceVisuals ()
 
protected void SetBurntFirewood ()
 DEPRECATED.
 
void RefreshFireplacePhysics ()
 
protected void RefreshFireParticlesAndSounds (bool force_refresh)
 
protected void StopAllParticlesAndSounds ()
 
bool CanShowSmoke ()
 
void RefreshFireState ()
 
protected bool PlayParticle (out Particle particle, int particle_type, vector pos, bool worldpos=false)
 
protected bool StopParticle (out Particle particle)
 
protected void ParticleFireStartStart ()
 
protected void ParticleFireStartStop ()
 
protected void ParticleSmallFireStart ()
 
protected void ParticleSmallFireStop ()
 
protected void ParticleNormalFireStart ()
 
protected void ParticleNormalFireStop ()
 
protected void ParticleSmallSmokeStart ()
 
protected void ParticleSmallSmokeStop ()
 
protected void ParticleNormalSmokeStart ()
 
protected void ParticleNormalSmokeStop ()
 
protected void ParticleFireEndStart ()
 
protected void ParticleFireEndStop ()
 
protected void ParticleFireWindyNoIgniteStart ()
 
protected void ParticleSteamExtinguishingStart ()
 
protected void ParticleSteamExtinguishingStop ()
 
protected void ParticleSteamEndStart ()
 
protected void ParticleSteamEndStop ()
 
protected void ParticleWetNoIgniteStart ()
 
protected void ParticleWetNoIgniteStop ()
 
bool GetCeilingHeight (out float actual_height)
 
float GetAirResistanceForSmokeParticles (float actual_height)
 
protected vector GetFireEffectPosition ()
 
protected vector GetSmokeEffectPosition ()
 
protected void SoundFireLightStart ()
 
protected void SoundFireHeavyStart ()
 
protected void SoundFireNoFireStart ()
 
protected void SoundFireExtinguishedStart ()
 
protected void SoundFireWetNoIgniteStart ()
 
protected void SoundFireExtinguishingStart ()
 
protected void SoundFireWindyNoIgniteStart ()
 
protected void SoundFireStop ()
 
protected void AddToFireConsumables (ItemBase item)
 
protected float GetFireConsumableTypeEnergy (ItemBase item)
 
protected void RemoveFromFireConsumables (FireConsumable fire_consumable)
 
protected FireConsumable GetFireConsumableByItem (ItemBase item)
 
protected FireConsumable SetItemToConsume ()
 
protected FireConsumable GetItemToConsume ()
 
protected void SpendFireConsumable (float amount)
 
protected int GetKindlingCount ()
 Returns count of all kindling type items (define in 'm_KindlingTypes') attached to fireplace.
 
protected int GetFuelCount ()
 Returns count of all fuel type items (define in 'm_FuelTypes') attached to fireplace.
 
protected bool IsKindling (ItemBase item)
 Returns if item attached to fireplace is kindling.
 
protected bool IsFuel (ItemBase item)
 Returns if item attached to fireplace is fuel.
 
bool IsItemTypeAttached (typename item_type)
 
bool IsItemAttachedQuantity (typename item_type, float quantity)
 
bool HasLastAttachment ()
 
bool HasLastFuelKindlingAttached ()
 
bool IsBurning ()
 
protected void SetBurningState (bool is_burning)
 
bool HasAshes ()
 
protected void SetAshesState (bool has_ashes)
 
bool IsOven ()
 
bool HasStoneCircle ()
 
bool HasStones ()
 
int GetAttachedStonesCount ()
 
void SetOvenState (bool is_oven)
 
void SetStoneCircleState (bool has_stonecircle)
 
protected float GetFuelBurnRateMP ()
 
protected void SetFuelBurnRateMP (float value)
 
protected int GetFireState ()
 
protected void SetFireState (FireplaceFireState state)
 
void SetExtinguishingState ()
 
void StartFire (bool force_start=false)
 
protected void StartHeating ()
 
protected void Heating ()
 
void StopFire (FireplaceFireState fire_state=FireplaceFireState.END_FIRE)
 
protected void StopHeating ()
 
protected void StartCooling ()
 
protected void Cooling ()
 
protected void StopCooling ()
 
protected void CookWithEquipment ()
 
Cooking GetCookingProcess ()
 
protected void CookOnDirectSlot (ItemBase slot_item, float temp_equip, float temp_ext)
 
protected void SmokeOnSmokingSlot (ItemBase slot_item, float temp_equip, float temp_ext)
 
protected void BurnItemsInFireplace ()
 
protected void AddTemperatureToItemByFire (ItemBase item)
 
protected void AddTemperatureToFireplace (float amount)
 DEPRECATED.
 
protected void AddDamageToItemByFireEx (ItemBase item, bool can_be_ruined, bool pAttachment)
 
protected void AddWetnessToItem (ItemBase item, float amount)
 
void AddWetnessToFireplace (float amount)
 
protected void TransferHeatToNearPlayers ()
 DEPRECATED.
 
void CreateAreaDamage ()
 
void DestroyAreaDamage ()
 
bool IsFacingFireplace (PlayerBase player)
 DEPRECATED.
 
bool HasAnyKindling ()
 
static bool IsWindy ()
 
bool GetIgniteFailure ()
 
void SetIgniteFailure (bool failure)
 
static bool IsEntityWet (notnull EntityAI entity_ai)
 
bool IsWet ()
 
override bool IsOpen ()
 
bool IsCeilingHighEnoughForSmoke ()
 
static bool IsRainingAboveEntity (notnull EntityAI entity_ai)
 
bool IsRainingAbove ()
 
static bool IsEntityOnWaterSurface (notnull EntityAI entity_ai)
 
protected float GetSurfaceWetnessOnHeatModifier (notnull EntityAI entity)
 
bool IsOnWaterSurface ()
 
static bool IsEntityOnInteriorSurface (notnull EntityAI entity_ai)
 
bool IsOnInteriorSurface ()
 
override bool IsEmpty ()
 
bool IsCargoEmpty ()
 
bool HasCookingStand ()
 
bool IsInAnimPhase (string anim_phase)
 
bool IsSpaceFor (vector size)
 
override bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
 
bool CanBuildOven ()
 
bool IsSpaceForOven ()
 
bool CanBuildStoneCircle ()
 
bool IsSpaceForCircle ()
 
bool CanDismantleOven ()
 
bool CanDismantleStoneCircle ()
 
bool CanCookOnStick ()
 
bool CanExtinguishFire ()
 
FireplaceLight GetLightEntity ()
 
void SetLightEntity (FireplaceLight light)
 
override bool CanBePlaced (Man player, vector position)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetDeploySoundset ()
 
protected void CalcAndSetTotalEnergy ()
 
protected void CalcAndSetQuantity ()
 
override void OnAttachmentQuantityChanged (ItemBase item)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
void LockOvenAttachments (bool lock)
 
override bool DisassembleOnLastDetach ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
override void OnDebugSpawn ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
protected float GetTemperatureLossMP ()
 determines how fast will the fireplace loose its temperature when cooling (lower is better)
 
protected void SetTemperatureLossMP (float value)
 
protected void AddDamageToItemByFire (ItemBase item, bool can_be_ruined)
 

Variables

enum FireplaceFireState WIND = 0
 
enum FireplaceFireState WET = 1
 
enum FireplaceFireState m_IsBurning = false
 
protected bool m_HasAshes = false
 
protected bool m_IsOven = false
 
protected bool m_HasStoneCircle = false
 
protected bool m_NoIgnite = false
 
protected int m_OvenAttachmentsLockState = -1
 
protected FireplaceFireState m_FireState = FireplaceFireState.NO_FIRE
 
protected FireplaceFireState m_LastFireState = FireplaceFireState.NO_FIRE
 
protected vector m_HalfExtents
 
protected float m_FuelBurnRateMP = 1.0
 
protected ref Cooking m_CookingProcess
 determines how fast will the fuel item burn before spending (lower is better)
 
const float PARAM_SMALL_FIRE_TEMPERATURE = 150
 
const float PARAM_NORMAL_FIRE_TEMPERATURE = 1000
 maximum fireplace temperature of a small fire (degree Celsius)
 
const float PARAM_OUTDOOR_FIRE_TEMPERATURE = 500
 maximum fireplace temperature of a normal fire (degree Celsius)
 
const float PARAM_MIN_FIRE_TEMPERATURE = 30
 maximum fireplace temperature of an outdoor fire (degree Celsius)
 
const float PARAM_TEMPERATURE_INCREASE = 10
 minimum fireplace temperature under which the fireplace is inactive (degree Celsius)
 
const float PARAM_TEMPERATURE_DECREASE = 3
 how much will temperature increase when fireplace is burning (degree Celsius per second)
 
const float PARAM_MAX_WET_TO_IGNITE = 0.2
 how much will temperature decrease when fireplace is cooling (degree Celsius per second)
 
const float PARAM_MIN_TEMP_TO_REIGNITE = 30
 maximum wetness value when the fireplace can be ignited
 
const float PARAM_IGNITE_RAIN_THRESHOLD = 0.1
 minimum fireplace temperature under which the fireplace can be reignited using air only (degree Celsius)
 
const float PARAM_BURN_WET_THRESHOLD = 0.40
 maximum rain value when the fireplace can be ignited
 
const float PARAM_WET_HEATING_DECREASE_COEF = 0.01
 maximum wetness value when the fireplace is able to burn
 
const float PARAM_WET_COOLING_DECREASE_COEF = 0.002
 value for calculating wetness loss during heating process
 
const float PARAM_FIRE_CONSUM_RATE_AMOUNT = 0.5
 value for calculating wetness loss during cooling process
 
const float PARAM_BURN_DAMAGE_COEF = 5.0
 base value of fire consumption rate (how many base energy will be spent on each update)
 
const float PARAM_FULL_HEAT_RADIUS = 2.0
 value for calculating damage on items located in fireplace cargo
 
const float PARAM_HEAT_RADIUS = 4.0
 radius in which objects are fully heated by fire
 
const float PARAM_MAX_TRANSFERED_TEMPERATURE = 20
 radius in which objects are heated by fire
 
const int MIN_STONES_TO_BUILD_CIRCLE = 8
 maximum value for temperature that will be transfered to player (environment)
 
const int MIN_STONES_TO_BUILD_OVEN = 16
 minimum amount of stones for circle
 
const int MAX_TEMPERATURE_TO_DISMANTLE_OVEN = 40
 minimum amount of stones for oven
 
const float MIN_CEILING_HEIGHT = 5
 maximum temperature for dismantling oven
 
const float FUEL_BURN_RATE_DEFAULT = 1.0
 min height of ceiling for fire to be ignited
 
const float FUEL_BURN_RATE_STONES = 0.92
 
const float FUEL_BURN_RATE_OVEN = 0.85
 
const float PARAM_COOKING_TEMP_THRESHOLD = 100
 cooking
 
const int TIMER_HEATING_UPDATE_INTERVAL = 3
 timer constants
 
const int TIMER_COOLING_UPDATE_INTERVAL = 3
 update interval duration of heating process (seconds)
 
const int DIRECT_COOKING_SLOT_COUNT = 3
 direct cooking slots
 
const int SMOKING_SLOT_COUNT = 4
 
const float SMOKING_SPEED = 1
 
const int LIFETIME_FIREPLACE_STONE_CIRCLE = 172800
 
const int LIFETIME_FIREPLACE_STONE_OVEN = 604800
 
const float IGNITE_WIND_THRESHOLD = 0.8
 
protected const float RAIN_EFFECT_LIMIT = 0.4
 
protected const float SNOWFALL_EFFECT_LIMIT = 1.3
 rain level that triggers fireplace to start soaking
 
protected const float RAIN_WETNESS_INCREASE = 0.02
 snowfall level that triggers fireplace to start soaking
 
protected const float SNOWFALL_WETNESS_INCREASE = 0.01
 value for calculating of wetness that fireplace gain when raining
 
protected ref Timer m_HeatingTimer
 value for calculating of wetness that fireplace gain when raining
 
protected ref Timer m_CoolingTimer
 
protected FireplaceLight m_Light
 
protected float m_LightDistance = 2000
 
protected ItemBase m_CookingEquipment
 
protected ItemBase m_DirectCookingSlots [DIRECT_COOKING_SLOT_COUNT]
 
protected ItemBase m_SmokingSlots [SMOKING_SLOT_COUNT]
 
protected ref FireConsumable m_ItemToConsume
 
protected int PARTICLE_FIRE_START = ParticleList.CAMP_FIRE_START
 
protected int PARTICLE_OVEN_FIRE_START = ParticleList.CAMP_STOVE_FIRE_START
 
protected int PARTICLE_SMALL_FIRE = ParticleList.CAMP_SMALL_FIRE
 
protected int PARTICLE_NORMAL_FIRE = ParticleList.CAMP_NORMAL_FIRE
 
protected int PARTICLE_OVEN_FIRE = ParticleList.CAMP_STOVE_FIRE
 
protected int PARTICLE_SMALL_SMOKE = ParticleList.CAMP_SMALL_SMOKE
 
protected int PARTICLE_NORMAL_SMOKE = ParticleList.CAMP_NORMAL_SMOKE
 
protected int PARTICLE_FIRE_END = ParticleList.CAMP_FIRE_END
 
protected int PARTICLE_OVEN_FIRE_END = ParticleList.CAMP_STOVE_FIRE_END
 
protected int PARTICLE_STEAM_END = ParticleList.CAMP_STEAM_2END
 
protected int PARTICLE_STEAM_EXTINGUISHING = ParticleList.CAMP_STEAM_EXTINGUISH_START
 
protected int PARTICLE_NO_IGNITE_WIND = ParticleList.CAMP_NO_IGNITE_WIND
 
protected Particle m_ParticleFireStart
 
protected Particle m_ParticleSmallFire
 
protected Particle m_ParticleNormalFire
 
protected Particle m_ParticleSmallSmoke
 
protected Particle m_ParticleNormalSmoke
 
protected Particle m_ParticleFireEnd
 
protected Particle m_ParticleSteamEnd
 
protected Particle m_ParticleSteamExtinguishing
 
const string SOUND_FIRE_HEAVY = "HeavyFire_SoundSet"
 
const string SOUND_FIRE_LIGHT = "LightFire_SoundSet"
 
const string SOUND_FIRE_NO_FIRE = "NoFuelFire_SoundSet"
 
const string SOUND_FIRE_EXTINGUISHING = "ExtinguishByWater_SoundSet"
 
const string SOUND_FIRE_EXTINGUISHED = "ExtinguishByWaterEnd_SoundSet"
 
protected EffectSound m_SoundFireLoop
 
protected EffectSound m_SoundFire
 
static protected ref map< typename, ref FireConsumableTypem_FireConsumableTypes
 
protected ref map< ItemBase, ref FireConsumablem_FireConsumables
 
const string MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. Fireplace is ruined."
 
const string MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited."
 
const string MESSAGE_IGNITE_RAIN = "The fire went out because of the rain."
 
const string MESSAGE_IGNITE_WIND = "The fire went out because of the wind."
 
const string MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water."
 
const string MESSAGE_IGNITE_UNDER_LOW_ROOF = "I cannot ignite the fireplace here, the is not enough room."
 
const string MESSAGE_REIGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string MESSAGE_REIGNITE_RAIN = "Cannot reignite fireplace in rain."
 
const string MESSAGE_REIGNITE_TOO_WET = "The fireplace is too wet to be reignited."
 
const string MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY = "Cannot bury ashes. There are sill items in it."
 
const string MESSAGE_BURY_ASHES_FAILED_SURFACE = "Cannot bury ashes on hard surface."
 
const string MESSAGE_BURY_ASHES_FAILED_BURNING = "Cannot bury ashes, the fireplace is still burning."
 
const string MESSAGE_BURY_ASHES_FAILED_TOO_HOT = "Cannot bury ashes, the fireplace is too hot."
 
const string MESSAGE_CANNOT_BUILD_OVEN = "Cannot build oven."
 
const string MESSAGE_CANNOT_DISMANTLE_OVEN = "Cannot dismantle oven."
 
const string ANIMATION_ASHES = "Ashes"
 
const string ANIMATION_KINDLING = "Kindling"
 
const string ANIMATION_STICKS = "Sticks"
 
const string ANIMATION_WOOD = "Wood"
 
const string ANIMATION_BURNT_WOOD = "BurntWood"
 
const string ANIMATION_STONE = "Stone"
 
const string ANIMATION_STONES = "StonesCircle"
 
const string ANIMATION_TRIPOD = "Tripod"
 
const string ANIMATION_OVEN = "Oven"
 
const string ANIMATION_INVENTORY = "Inventory"
 
const string ANIMATION_COOKWARE_HANDLE = "handleRotate"
 
const string ANIMATION_CAULDRON_HANDLE = "handle1Rotate"
 
const string MATERIAL_FIREPLACE_GLOW = "dz\\gear\\cooking\\data\\stoneground.rvmat"
 
const string MATERIAL_FIREPLACE_NOGLOW = "dz\\gear\\cooking\\data\\stonegroundnoemit.rvmat"
 
 ATTACHMENT_STICKS = WoodenStick
 
 ATTACHMENT_FIREWOOD = Firewood
 
 ATTACHMENT_RAGS = Rag
 
 ATTACHMENT_BANDAGE = BandageDressing
 
 ATTACHMENT_BOOK = ItemBook
 
 ATTACHMENT_BARK_OAK = Bark_Oak
 
 ATTACHMENT_BARK_BIRCH = Bark_Birch
 
 ATTACHMENT_PAPER = Paper
 
 ATTACHMENT_GIFTWRAP = GiftWrapPaper
 
 ATTACHMENT_PUNCHEDCARD = PunchedCard
 
 ATTACHMENT_EYEMASK_COLORBASE = EyeMask_ColorBase
 
 ATTACHMENT_TRIPOD = Tripod
 
 ATTACHMENT_COOKINGSTAND = CookingStand
 
 ATTACHMENT_STONES = Stone
 
 ATTACHMENT_COOKING_POT = Pot
 
 ATTACHMENT_FRYING_PAN = FryingPan
 
 ATTACHMENT_CAULDRON = Cauldron
 
protected const float PLACEMENT_HEIGHT_LIMIT = 0.1
 
const string OBJECT_CLUTTER_CUTTER = "ClutterCutterFireplace"
 
protected Object m_ClutterCutter
 
protected ref AreaDamageManager m_AreaDamage
 
protected float m_TotalEnergy
 
ref NoiseParams m_NoisePar
 
private bool m_CanNoise = true
 
protected ref UniversalTemperatureSource m_UTSource
 
protected ref UniversalTemperatureSourceSettings m_UTSSettings
 
protected ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace
 
protected const float WET_SURFACE_INCREMENT = 0.06
 
protected float m_SurfaceUnderWetnessModifier protected bool m_ThawnSurfaceUnderSupport
 size of wetness increment (per FP heating tick) added to overall FP wetness when ignited on wet surface
 
protected ref UnderObjectDecalSpawnSettings m_UnderObjectDecalSpawnSettings
 
protected ref UnderObjectDecalSpawnComponent m_UnderObjectDecalSpawnComponent
 
const float PARAM_ITEM_HEAT_MIN_TEMP = 40
 
const float PARAM_ITEM_HEAT_TEMP_INCREASE_COEF = 10
 DEPRECATED.
 
const float PARAM_ITEM_HEAT_TEMP_HEATING_COEF = 1.0
 value for calculating temperature increase on each heat update interval (degree Celsius)
 
const float PARAM_MAX_ITEM_HEAT_TEMP_INCREASE = 200
 multiplies temperature change on heating
 
const float PARAM_HEAT_THROUGH_AIR_COEF = 0.1
 maximum value of temperature of items in fireplace when heating (degree Celsius)
 
const float TEMPERATURE_LOSS_MP_DEFAULT = 1.0
 DEPRECATED value for calculation of heat transfered from fireplace through air to player (environment)
 
const float TEMPERATURE_LOSS_MP_STONES = 0.90
 
const float TEMPERATURE_LOSS_MP_OVEN = 0.75
 
const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 maximum temperature of attached cooking equipment (degree Celsius)
 
const float DIRECT_COOKING_SPEED = 1.5
 how much will temperature increase when attached on burning fireplace (degree Celsius)
 
const float PARAM_WET_INCREASE_COEF = 0.02
 
protected float m_TemperatureLossMP = 1.0
 value for calculating of wetness that fireplace gain when raining
 

Enumeration Type Documentation

◆ FireplaceFireState

Enumerator
NO_FIRE 
START_FIRE 
SMALL_FIRE 
NORMAL_FIRE 
END_FIRE 
EXTINGUISHING_FIRE 
EXTINGUISHED_FIRE 
REIGNITED_FIRE 
COUNT 

Function Documentation

◆ AddDamageToItemByFire()

protected void AddDamageToItemByFire ( ItemBase  item,
bool  can_be_ruined 
)

◆ AddDamageToItemByFireEx()

◆ AddTemperatureToFireplace()

protected void AddTemperatureToFireplace ( float  amount)

DEPRECATED.

◆ AddTemperatureToItemByFire()

◆ AddToFireConsumables()

◆ AddWetnessToFireplace()

◆ AddWetnessToItem()

protected void AddWetnessToItem ( ItemBase  item,
float  amount 
)

References Math::Clamp().

Referenced by BurnItemsInFireplace().

◆ AfterStoreLoad()

override void AfterStoreLoad ( )

◆ BurnItemsInFireplace()

◆ CalcAndSetQuantity()

◆ CalcAndSetTotalEnergy()

protected void CalcAndSetTotalEnergy ( )

◆ CanBePlaced()

override bool CanBePlaced ( Man  player,
vector  position 
)

◆ CanBuildOven()

◆ CanBuildStoneCircle()

◆ CanCookOnStick()

bool CanCookOnStick ( )

◆ CanDismantleOven()

◆ CanDismantleStoneCircle()

bool CanDismantleStoneCircle ( )

◆ CanExtinguishFire()

bool CanExtinguishFire ( )

References IsBurning().

◆ CanHaveTemperature()

◆ CanHaveWetness()

override bool CanHaveWetness ( )

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI  attachment)

References IsBurning(), IsFuel(), and IsKindling().

◆ CanShowSmoke()

bool CanShowSmoke ( )

◆ CanSwapEntities()

override bool CanSwapEntities ( EntityAI  otherItem,
InventoryLocation  otherDestination,
InventoryLocation  destination 
)

◆ CheckForDestroy()

◆ ClearCookingEquipment() [1/2]

◆ ClearCookingEquipment() [2/2]

void ClearCookingEquipment ( ItemBase  pItem)

◆ CookOnDirectSlot()

protected void CookOnDirectSlot ( ItemBase  slot_item,
float  temp_equip,
float  temp_ext 
)

References m_CookingProcess.

Referenced by Cooling(), and Heating().

◆ CookWithEquipment()

protected void CookWithEquipment ( )

References m_CookingEquipment, and m_CookingProcess.

Referenced by Cooling(), and Heating().

◆ Cooling()

◆ CreateAreaDamage()

◆ DestroyAreaDamage()

◆ DestroyFireplace()

void DestroyFireplace ( )

[DEPRECATED]

◆ DirectCookingSlotsInUse()

◆ DisassembleOnLastDetach()

override bool DisassembleOnLastDetach ( )

◆ EEDelete()

override void EEDelete ( EntityAI  parent)

◆ EEInit()

◆ EEItemAttached()

override void EEItemAttached ( EntityAI  item,
string  slot_name 
)

◆ FireplaceBase()

◆ GetAirResistanceForSmokeParticles()

float GetAirResistanceForSmokeParticles ( float  actual_height)

◆ GetAttachedStonesCount()

int GetAttachedStonesCount ( )

References ATTACHMENT_STONES, and HasStones().

Referenced by CanBuildOven(), and CanBuildStoneCircle().

◆ GetCeilingHeight()

bool GetCeilingHeight ( out float  actual_height)

◆ GetCookingEquipment()

ItemBase GetCookingEquipment ( )

◆ GetCookingProcess()

Cooking GetCookingProcess ( )

References m_CookingProcess.

◆ GetCookingTargetTemperature()

override bool GetCookingTargetTemperature ( out float  temperature)

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx  outputList)

References SAT_DEBUG_ACTION.

◆ GetDeploySoundset()

override string GetDeploySoundset ( )

◆ GetFireConsumableByItem()

protected FireConsumable GetFireConsumableByItem ( ItemBase  item)

◆ GetFireConsumableTypeEnergy()

protected float GetFireConsumableTypeEnergy ( ItemBase  item)

support for inherited classes; second pass of lookup inside FireConsumableType

References FireConsumableType::GetEnergy(), and m_FireConsumableTypes.

Referenced by AddToFireConsumables().

◆ GetFireEffectPosition()

◆ GetFireState()

protected int GetFireState ( )

◆ GetFuelBurnRateMP()

protected float GetFuelBurnRateMP ( )

References m_FuelBurnRateMP.

Referenced by Heating().

◆ GetFuelCount()

protected int GetFuelCount ( )

Returns count of all fuel type items (define in 'm_FuelTypes') attached to fireplace.

References IsFuel().

Referenced by AddWetnessToFireplace(), Cooling(), HasLastFuelKindlingAttached(), and Heating().

◆ GetIgniteFailure()

◆ GetItemToConsume()

protected FireConsumable GetItemToConsume ( )

References m_ItemToConsume.

Referenced by SpendFireConsumable().

◆ GetKindlingCount()

protected int GetKindlingCount ( )

Returns count of all kindling type items (define in 'm_KindlingTypes') attached to fireplace.

References IsKindling().

Referenced by HasAnyKindling(), HasLastFuelKindlingAttached(), and RefreshFireplaceVisuals().

◆ GetLightEntity()

FireplaceLight GetLightEntity ( )

References m_Light.

Referenced by RefreshFireplaceVisuals(), and ~FireplaceBase().

◆ GetSmokeEffectPosition()

protected vector GetSmokeEffectPosition ( )

References Vector().

◆ GetSurfaceWetnessOnHeatModifier()

protected float GetSurfaceWetnessOnHeatModifier ( notnull EntityAI  entity)

References g_Game, and Surface::GetParamFloat().

Referenced by OnItemLocationChanged().

◆ GetTemperatureLossMP()

protected float GetTemperatureLossMP ( )

determines how fast will the fireplace loose its temperature when cooling (lower is better)

References m_TemperatureLossMP.

◆ HasAnyKindling()

◆ HasAshes()

◆ HasCookingStand()

◆ HasLastAttachment()

bool HasLastAttachment ( )

◆ HasLastFuelKindlingAttached()

bool HasLastFuelKindlingAttached ( )

◆ HasStoneCircle()

◆ HasStones()

◆ Heating()

◆ InitializeTemperatureSources()

◆ IsBarrelWithHoles()

bool IsBarrelWithHoles ( )

◆ IsBaseFireplace()

bool IsBaseFireplace ( )

◆ IsBurning()

◆ IsCargoEmpty()

◆ IsCeilingHighEnoughForSmoke()

bool IsCeilingHighEnoughForSmoke ( )

◆ IsEmpty()

◆ IsEntityOnInteriorSurface()

static bool IsEntityOnInteriorSurface ( notnull EntityAI  entity_ai)
static

◆ IsEntityOnWaterSurface()

static bool IsEntityOnWaterSurface ( notnull EntityAI  entity_ai)
static

References string::Contains(), and g_Game.

◆ IsEntityWet()

static bool IsEntityWet ( notnull EntityAI  entity_ai)
static

◆ IsFacingFireplace()

bool IsFacingFireplace ( PlayerBase  player)

DEPRECATED.

References ErrorEx.

◆ IsFireplace()

override bool IsFireplace ( )

◆ IsFireplaceIndoor()

bool IsFireplaceIndoor ( )

◆ IsFuel()

◆ IsInAnimPhase()

bool IsInAnimPhase ( string  anim_phase)

Referenced by SetBurntFirewood().

◆ IsIndoorOven()

bool IsIndoorOven ( )

◆ IsItemAttachedQuantity()

bool IsItemAttachedQuantity ( typename item_type  ,
float  quantity 
)

◆ IsItemTypeAttached()

bool IsItemTypeAttached ( typename item_type  )

◆ IsKindling()

◆ IsOnInteriorSurface()

bool IsOnInteriorSurface ( )

◆ IsOnWaterSurface()

bool IsOnWaterSurface ( )

◆ IsOpen()

override bool IsOpen ( )

◆ IsOven()

◆ IsPrepareToDelete()

override bool IsPrepareToDelete ( )

◆ IsRainingAbove()

bool IsRainingAbove ( )

◆ IsRainingAboveEntity()

static bool IsRainingAboveEntity ( notnull EntityAI  entity_ai)
static

References GetGame().

◆ IsSelfAdjustingTemperature()

override bool IsSelfAdjustingTemperature ( )

References m_CoolingTimer, and m_IsBurning.

◆ IsSpaceFor()

bool IsSpaceFor ( vector  size)

◆ IsSpaceForCircle()

bool IsSpaceForCircle ( )

References IsSpaceFor(), and Vector().

Referenced by CanBuildStoneCircle().

◆ IsSpaceForOven()

bool IsSpaceForOven ( )

References IsSpaceFor(), and Vector().

Referenced by CanBuildOven().

◆ IsWet()

◆ IsWindy()

◆ LockOvenAttachments()

◆ OnAction()

override bool OnAction ( int  action_id,
Man  player,
ParamsReadContext  ctx 
)

◆ OnAttachmentQuantityChanged()

override void OnAttachmentQuantityChanged ( ItemBase  item)

References CalcAndSetQuantity().

◆ OnAttachmentRuined()

◆ OnChildItemRemoved()

override void OnChildItemRemoved ( InventoryItem  item)

References CheckForDestroy().

◆ OnDebugSpawn()

override void OnDebugSpawn ( )

◆ OnItemLocationChanged()

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man  player,
vector  position = "0 0 0",
vector  orientation = "0 0 0" 
)

◆ OnRPC()

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)

◆ OnVariablesSynchronized()

◆ ParticleFireEndStart()

◆ ParticleFireEndStop()

protected void ParticleFireEndStop ( )

◆ ParticleFireStartStart()

◆ ParticleFireStartStop()

protected void ParticleFireStartStop ( )

◆ ParticleFireWindyNoIgniteStart()

protected void ParticleFireWindyNoIgniteStart ( )

◆ ParticleNormalFireStart()

◆ ParticleNormalFireStop()

protected void ParticleNormalFireStop ( )

◆ ParticleNormalSmokeStart()

◆ ParticleNormalSmokeStop()

protected void ParticleNormalSmokeStop ( )

◆ ParticleSmallFireStart()

◆ ParticleSmallFireStop()

protected void ParticleSmallFireStop ( )

◆ ParticleSmallSmokeStart()

◆ ParticleSmallSmokeStop()

protected void ParticleSmallSmokeStop ( )

◆ ParticleSteamEndStart()

protected void ParticleSteamEndStart ( )

◆ ParticleSteamEndStop()

protected void ParticleSteamEndStop ( )

◆ ParticleSteamExtinguishingStart()

protected void ParticleSteamExtinguishingStart ( )

◆ ParticleSteamExtinguishingStop()

protected void ParticleSteamExtinguishingStop ( )

◆ ParticleWetNoIgniteStart()

protected void ParticleWetNoIgniteStart ( )

◆ ParticleWetNoIgniteStop()

protected void ParticleWetNoIgniteStop ( )

◆ PlayParticle()

protected bool PlayParticle ( out Particle  particle,
int  particle_type,
vector  pos,
bool  worldpos = false 
)

References GetGame(), and ParticleManager().

◆ RefreshFireParticlesAndSounds()

◆ RefreshFireplacePhysics()

void RefreshFireplacePhysics ( )

◆ RefreshFireplaceVisuals()

◆ RefreshFireState()

void RefreshFireState ( )

◆ RemoveFromFireConsumables()

protected void RemoveFromFireConsumables ( FireConsumable  fire_consumable)

◆ SetAshesState()

protected void SetAshesState ( bool  has_ashes)

References m_HasAshes.

Referenced by SpendFireConsumable().

◆ SetBurningState()

protected void SetBurningState ( bool  is_burning)

References m_IsBurning.

Referenced by StartFire(), and StopFire().

◆ SetBurntFirewood()

protected void SetBurntFirewood ( )

◆ SetCookingEquipment()

void SetCookingEquipment ( ItemBase  equipment)

References m_CookingEquipment.

◆ SetExtinguishingState()

void SetExtinguishingState ( )

References SetFireState().

◆ SetFireState()

protected void SetFireState ( FireplaceFireState  state)

◆ SetFuelBurnRateMP()

protected void SetFuelBurnRateMP ( float  value)

◆ SetIgniteFailure()

void SetIgniteFailure ( bool  failure)

◆ SetItemToConsume()

◆ SetLightEntity()

void SetLightEntity ( FireplaceLight  light)

References m_Light.

Referenced by RefreshFireplaceVisuals().

◆ SetOvenState()

void SetOvenState ( bool  is_oven)

◆ SetStoneCircleState()

void SetStoneCircleState ( bool  has_stonecircle)

◆ SetTemperatureLossMP()

protected void SetTemperatureLossMP ( float  value)

References m_TemperatureLossMP.

◆ SmokeOnSmokingSlot()

protected void SmokeOnSmokingSlot ( ItemBase  slot_item,
float  temp_equip,
float  temp_ext 
)

References m_CookingProcess.

Referenced by Cooling(), and Heating().

◆ SmokingSlotsInUse()

◆ SoundFireExtinguishedStart()

protected void SoundFireExtinguishedStart ( )

◆ SoundFireExtinguishingStart()

protected void SoundFireExtinguishingStart ( )

◆ SoundFireHeavyStart()

protected void SoundFireHeavyStart ( )

◆ SoundFireLightStart()

protected void SoundFireLightStart ( )

◆ SoundFireNoFireStart()

protected void SoundFireNoFireStart ( )

◆ SoundFireStop()

protected void SoundFireStop ( )

References m_SoundFireLoop.

Referenced by OnRPC(), and RefreshFireParticlesAndSounds().

◆ SoundFireWetNoIgniteStart()

protected void SoundFireWetNoIgniteStart ( )

References m_SoundFire, and SOUND_FIRE_EXTINGUISHED.

Referenced by OnRPC().

◆ SoundFireWindyNoIgniteStart()

protected void SoundFireWindyNoIgniteStart ( )

References m_SoundFire.

Referenced by OnRPC().

◆ SpendFireConsumable()

◆ StartCooling()

◆ StartFire()

◆ StartHeating()

◆ StopAllParticlesAndSounds()

◆ StopCooling()

◆ StopFire()

◆ StopHeating()

protected void StopHeating ( )

References m_HeatingTimer, and Timer::Stop().

Referenced by StopFire().

◆ StopParticle()

protected bool StopParticle ( out Particle  particle)

References GetGame().

◆ Synchronize()

◆ TransferHeatToNearPlayers()

protected void TransferHeatToNearPlayers ( )

DEPRECATED.

◆ ~FireplaceBase()

Variable Documentation

◆ ANIMATION_ASHES

const string ANIMATION_ASHES = "Ashes"

Referenced by RefreshFireplaceVisuals().

◆ ANIMATION_BURNT_WOOD

const string ANIMATION_BURNT_WOOD = "BurntWood"

◆ ANIMATION_CAULDRON_HANDLE

const string ANIMATION_CAULDRON_HANDLE = "handle1Rotate"

◆ ANIMATION_COOKWARE_HANDLE

const string ANIMATION_COOKWARE_HANDLE = "handleRotate"

◆ ANIMATION_INVENTORY

const string ANIMATION_INVENTORY = "Inventory"

◆ ANIMATION_KINDLING

const string ANIMATION_KINDLING = "Kindling"

Referenced by RefreshFireplaceVisuals().

◆ ANIMATION_OVEN

const string ANIMATION_OVEN = "Oven"

◆ ANIMATION_STICKS

const string ANIMATION_STICKS = "Sticks"

Referenced by RefreshFireplaceVisuals().

◆ ANIMATION_STONE

const string ANIMATION_STONE = "Stone"

Referenced by RefreshFireplaceVisuals().

◆ ANIMATION_STONES

const string ANIMATION_STONES = "StonesCircle"

Referenced by RefreshFireplaceVisuals().

◆ ANIMATION_TRIPOD

const string ANIMATION_TRIPOD = "Tripod"

◆ ANIMATION_WOOD

const string ANIMATION_WOOD = "Wood"

◆ ATTACHMENT_BANDAGE

ATTACHMENT_BANDAGE = BandageDressing

Referenced by FireplaceBase().

◆ ATTACHMENT_BARK_BIRCH

ATTACHMENT_BARK_BIRCH = Bark_Birch

Referenced by FireplaceBase().

◆ ATTACHMENT_BARK_OAK

ATTACHMENT_BARK_OAK = Bark_Oak

Referenced by FireplaceBase().

◆ ATTACHMENT_BOOK

ATTACHMENT_BOOK = ItemBook

Referenced by FireplaceBase().

◆ ATTACHMENT_CAULDRON

◆ ATTACHMENT_COOKING_POT

◆ ATTACHMENT_COOKINGSTAND

ATTACHMENT_COOKINGSTAND = CookingStand

◆ ATTACHMENT_EYEMASK_COLORBASE

ATTACHMENT_EYEMASK_COLORBASE = EyeMask_ColorBase

Referenced by FireplaceBase().

◆ ATTACHMENT_FIREWOOD

ATTACHMENT_FIREWOOD = Firewood

◆ ATTACHMENT_FRYING_PAN

◆ ATTACHMENT_GIFTWRAP

ATTACHMENT_GIFTWRAP = GiftWrapPaper

Referenced by FireplaceBase().

◆ ATTACHMENT_PAPER

ATTACHMENT_PAPER = Paper

Referenced by FireplaceBase().

◆ ATTACHMENT_PUNCHEDCARD

ATTACHMENT_PUNCHEDCARD = PunchedCard

Referenced by FireplaceBase().

◆ ATTACHMENT_RAGS

ATTACHMENT_RAGS = Rag

Referenced by FireplaceBase().

◆ ATTACHMENT_STICKS

ATTACHMENT_STICKS = WoodenStick

◆ ATTACHMENT_STONES

◆ ATTACHMENT_TRIPOD

◆ DIRECT_COOKING_SLOT_COUNT

const int DIRECT_COOKING_SLOT_COUNT = 3

direct cooking slots

update interval duration of cooling process (seconds)

Referenced by Cooling(), DirectCookingSlotsInUse(), Heating(), and StopCooling().

◆ DIRECT_COOKING_SPEED

const float DIRECT_COOKING_SPEED = 1.5

how much will temperature increase when attached on burning fireplace (degree Celsius)

◆ FUEL_BURN_RATE_DEFAULT

const float FUEL_BURN_RATE_DEFAULT = 1.0

min height of ceiling for fire to be ignited

Referenced by FireplaceBase(), and RefreshFireplaceVisuals().

◆ FUEL_BURN_RATE_OVEN

const float FUEL_BURN_RATE_OVEN = 0.85

Referenced by RefreshFireplaceVisuals().

◆ FUEL_BURN_RATE_STONES

const float FUEL_BURN_RATE_STONES = 0.92

Referenced by RefreshFireplaceVisuals().

◆ IGNITE_WIND_THRESHOLD

const float IGNITE_WIND_THRESHOLD = 0.8

◆ LIFETIME_FIREPLACE_STONE_CIRCLE

const int LIFETIME_FIREPLACE_STONE_CIRCLE = 172800

◆ LIFETIME_FIREPLACE_STONE_OVEN

const int LIFETIME_FIREPLACE_STONE_OVEN = 604800

◆ m_AreaDamage

◆ m_CanNoise

private bool m_CanNoise = true

Referenced by Heating().

◆ m_ClutterCutter

◆ m_CookingEquipment

◆ m_CookingProcess

protected ref Cooking m_CookingProcess

◆ m_CoolingTimer

◆ m_DirectCookingSlots

◆ m_FireConsumables

◆ m_FireConsumableTypes

protected ref map<typename, ref FireConsumableType> m_FireConsumableTypes
static

◆ m_FireState

Referenced by GetFireState(), and SetFireState().

◆ m_FuelBurnRateMP

protected float m_FuelBurnRateMP = 1.0

◆ m_HalfExtents

protected vector m_HalfExtents

◆ m_HasAshes

protected bool m_HasAshes = false

◆ m_HasStoneCircle

◆ m_HeatingTimer

protected ref Timer m_HeatingTimer

value for calculating of wetness that fireplace gain when raining

Referenced by AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), StartCooling(), StartHeating(), and StopHeating().

◆ m_IsBurning

◆ m_IsOven

protected bool m_IsOven = false

◆ m_ItemToConsume

protected ref FireConsumable m_ItemToConsume

◆ m_LastFireState

◆ m_Light

protected FireplaceLight m_Light

◆ m_LightDistance

◆ m_NoIgnite

protected bool m_NoIgnite = false

◆ m_NoisePar

ref NoiseParams m_NoisePar

◆ m_OvenAttachmentsLockState

protected int m_OvenAttachmentsLockState = -1

◆ m_ParticleFireEnd

◆ m_ParticleFireStart

protected Particle m_ParticleFireStart

◆ m_ParticleNormalFire

protected Particle m_ParticleNormalFire

◆ m_ParticleNormalSmoke

◆ m_ParticleSmallFire

protected Particle m_ParticleSmallFire

◆ m_ParticleSmallSmoke

◆ m_ParticleSteamEnd

◆ m_ParticleSteamExtinguishing

◆ m_SmokingSlots

◆ m_SoundFire

◆ m_SoundFireLoop

◆ m_TemperatureLossMP

protected float m_TemperatureLossMP = 1.0

value for calculating of wetness that fireplace gain when raining

Referenced by GetTemperatureLossMP(), OnStoreLoad(), and SetTemperatureLossMP().

◆ m_ThawnSurfaceUnderSupport

protected float m_SurfaceUnderWetnessModifier protected bool m_ThawnSurfaceUnderSupport

size of wetness increment (per FP heating tick) added to overall FP wetness when ignited on wet surface

Referenced by FireplaceBase::BarrelHoles_ColorBase(), EEInit(), FireplaceBase::Fireplace(), FireplaceFireBarrel::FireplaceFireBarrel(), OnItemLocationChanged(), OnVariablesSynchronized(), and ~FireplaceBase().

◆ m_TotalEnergy

protected float m_TotalEnergy

◆ m_UnderObjectDecalSpawnComponent

protected ref UnderObjectDecalSpawnComponent m_UnderObjectDecalSpawnComponent

◆ m_UnderObjectDecalSpawnSettings

◆ m_UTSLFireplace

◆ m_UTSource

◆ m_UTSSettings

◆ MATERIAL_FIREPLACE_GLOW

const string MATERIAL_FIREPLACE_GLOW = "dz\\gear\\cooking\\data\\stoneground.rvmat"

Referenced by StartHeating().

◆ MATERIAL_FIREPLACE_NOGLOW

const string MATERIAL_FIREPLACE_NOGLOW = "dz\\gear\\cooking\\data\\stonegroundnoemit.rvmat"

Referenced by StopCooling().

◆ MAX_TEMPERATURE_TO_DISMANTLE_OVEN

const int MAX_TEMPERATURE_TO_DISMANTLE_OVEN = 40

minimum amount of stones for oven

Referenced by CanDismantleOven().

◆ MESSAGE_BURY_ASHES_FAILED_BURNING

const string MESSAGE_BURY_ASHES_FAILED_BURNING = "Cannot bury ashes, the fireplace is still burning."

◆ MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY

const string MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY = "Cannot bury ashes. There are sill items in it."

◆ MESSAGE_BURY_ASHES_FAILED_SURFACE

const string MESSAGE_BURY_ASHES_FAILED_SURFACE = "Cannot bury ashes on hard surface."

◆ MESSAGE_BURY_ASHES_FAILED_TOO_HOT

const string MESSAGE_BURY_ASHES_FAILED_TOO_HOT = "Cannot bury ashes, the fireplace is too hot."

◆ MESSAGE_CANNOT_BUILD_OVEN

const string MESSAGE_CANNOT_BUILD_OVEN = "Cannot build oven."

◆ MESSAGE_CANNOT_DISMANTLE_OVEN

const string MESSAGE_CANNOT_DISMANTLE_OVEN = "Cannot dismantle oven."

◆ MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED

const string MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. Fireplace is ruined."

◆ MESSAGE_IGNITE_IN_WATER

const string MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water."

◆ MESSAGE_IGNITE_NO_KINDLING

const string MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."

◆ MESSAGE_IGNITE_RAIN

const string MESSAGE_IGNITE_RAIN = "The fire went out because of the rain."

◆ MESSAGE_IGNITE_TOO_WET

const string MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited."

◆ MESSAGE_IGNITE_UNDER_LOW_ROOF

const string MESSAGE_IGNITE_UNDER_LOW_ROOF = "I cannot ignite the fireplace here, the is not enough room."

◆ MESSAGE_IGNITE_WIND

const string MESSAGE_IGNITE_WIND = "The fire went out because of the wind."

◆ MESSAGE_REIGNITE_NO_KINDLING

const string MESSAGE_REIGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."

◆ MESSAGE_REIGNITE_RAIN

const string MESSAGE_REIGNITE_RAIN = "Cannot reignite fireplace in rain."

◆ MESSAGE_REIGNITE_TOO_WET

const string MESSAGE_REIGNITE_TOO_WET = "The fireplace is too wet to be reignited."

◆ MIN_CEILING_HEIGHT

const float MIN_CEILING_HEIGHT = 5

maximum temperature for dismantling oven

Referenced by GetCeilingHeight().

◆ MIN_STONES_TO_BUILD_CIRCLE

const int MIN_STONES_TO_BUILD_CIRCLE = 8

maximum value for temperature that will be transfered to player (environment)

Referenced by CanBuildStoneCircle().

◆ MIN_STONES_TO_BUILD_OVEN

const int MIN_STONES_TO_BUILD_OVEN = 16

minimum amount of stones for circle

Referenced by CanBuildOven().

◆ OBJECT_CLUTTER_CUTTER

const string OBJECT_CLUTTER_CUTTER = "ClutterCutterFireplace"

◆ PARAM_BURN_DAMAGE_COEF

const float PARAM_BURN_DAMAGE_COEF = 5.0

base value of fire consumption rate (how many base energy will be spent on each update)

◆ PARAM_BURN_WET_THRESHOLD

const float PARAM_BURN_WET_THRESHOLD = 0.40

maximum rain value when the fireplace can be ignited

Referenced by Heating(), and StartHeating().

◆ PARAM_COOKING_EQUIP_MAX_TEMP

const float PARAM_COOKING_EQUIP_MAX_TEMP = 250

◆ PARAM_COOKING_EQUIP_TEMP_INCREASE

const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10

maximum temperature of attached cooking equipment (degree Celsius)

◆ PARAM_COOKING_TEMP_THRESHOLD

const float PARAM_COOKING_TEMP_THRESHOLD = 100

cooking

Referenced by CanCookOnStick(), and Cooling().

◆ PARAM_FIRE_CONSUM_RATE_AMOUNT

const float PARAM_FIRE_CONSUM_RATE_AMOUNT = 0.5

value for calculating wetness loss during cooling process

Referenced by Heating().

◆ PARAM_FULL_HEAT_RADIUS

const float PARAM_FULL_HEAT_RADIUS = 2.0

value for calculating damage on items located in fireplace cargo

Referenced by FireplaceBase().

◆ PARAM_HEAT_RADIUS

const float PARAM_HEAT_RADIUS = 4.0

radius in which objects are fully heated by fire

Referenced by FireplaceBase().

◆ PARAM_HEAT_THROUGH_AIR_COEF

const float PARAM_HEAT_THROUGH_AIR_COEF = 0.1

maximum value of temperature of items in fireplace when heating (degree Celsius)

◆ PARAM_IGNITE_RAIN_THRESHOLD

const float PARAM_IGNITE_RAIN_THRESHOLD = 0.1

minimum fireplace temperature under which the fireplace can be reignited using air only (degree Celsius)

◆ PARAM_ITEM_HEAT_MIN_TEMP

const float PARAM_ITEM_HEAT_MIN_TEMP = 40

◆ PARAM_ITEM_HEAT_TEMP_HEATING_COEF

const float PARAM_ITEM_HEAT_TEMP_HEATING_COEF = 1.0

value for calculating temperature increase on each heat update interval (degree Celsius)

◆ PARAM_ITEM_HEAT_TEMP_INCREASE_COEF

const float PARAM_ITEM_HEAT_TEMP_INCREASE_COEF = 10

DEPRECATED.

◆ PARAM_MAX_ITEM_HEAT_TEMP_INCREASE

const float PARAM_MAX_ITEM_HEAT_TEMP_INCREASE = 200

multiplies temperature change on heating

◆ PARAM_MAX_TRANSFERED_TEMPERATURE

const float PARAM_MAX_TRANSFERED_TEMPERATURE = 20

radius in which objects are heated by fire

Referenced by FireplaceBase().

◆ PARAM_MAX_WET_TO_IGNITE

const float PARAM_MAX_WET_TO_IGNITE = 0.2

how much will temperature decrease when fireplace is cooling (degree Celsius per second)

◆ PARAM_MIN_FIRE_TEMPERATURE

const float PARAM_MIN_FIRE_TEMPERATURE = 30

maximum fireplace temperature of an outdoor fire (degree Celsius)

Referenced by AddWetnessToFireplace(), and RefreshFireState().

◆ PARAM_MIN_TEMP_TO_REIGNITE

const float PARAM_MIN_TEMP_TO_REIGNITE = 30

maximum wetness value when the fireplace can be ignited

◆ PARAM_NORMAL_FIRE_TEMPERATURE

const float PARAM_NORMAL_FIRE_TEMPERATURE = 1000

maximum fireplace temperature of a small fire (degree Celsius)

Referenced by AddWetnessToFireplace(), and InitializeTemperatureSources().

◆ PARAM_OUTDOOR_FIRE_TEMPERATURE

const float PARAM_OUTDOOR_FIRE_TEMPERATURE = 500

maximum fireplace temperature of a normal fire (degree Celsius)

Referenced by FireplaceBase::InitializeTemperatureSources().

◆ PARAM_SMALL_FIRE_TEMPERATURE

const float PARAM_SMALL_FIRE_TEMPERATURE = 150

◆ PARAM_TEMPERATURE_DECREASE

const float PARAM_TEMPERATURE_DECREASE = 3

how much will temperature increase when fireplace is burning (degree Celsius per second)

Referenced by Cooling(), and Heating().

◆ PARAM_TEMPERATURE_INCREASE

const float PARAM_TEMPERATURE_INCREASE = 10

minimum fireplace temperature under which the fireplace is inactive (degree Celsius)

Referenced by Heating().

◆ PARAM_WET_COOLING_DECREASE_COEF

const float PARAM_WET_COOLING_DECREASE_COEF = 0.002

value for calculating wetness loss during heating process

Referenced by Cooling().

◆ PARAM_WET_HEATING_DECREASE_COEF

const float PARAM_WET_HEATING_DECREASE_COEF = 0.01

maximum wetness value when the fireplace is able to burn

Referenced by BurnItemsInFireplace(), and Heating().

◆ PARAM_WET_INCREASE_COEF

const float PARAM_WET_INCREASE_COEF = 0.02

◆ PARTICLE_FIRE_END

◆ PARTICLE_FIRE_START

◆ PARTICLE_NO_IGNITE_WIND

protected int PARTICLE_NO_IGNITE_WIND = ParticleList.CAMP_NO_IGNITE_WIND

◆ PARTICLE_NORMAL_FIRE

◆ PARTICLE_NORMAL_SMOKE

◆ PARTICLE_OVEN_FIRE

protected int PARTICLE_OVEN_FIRE = ParticleList.CAMP_STOVE_FIRE

◆ PARTICLE_OVEN_FIRE_END

protected int PARTICLE_OVEN_FIRE_END = ParticleList.CAMP_STOVE_FIRE_END

◆ PARTICLE_OVEN_FIRE_START

protected int PARTICLE_OVEN_FIRE_START = ParticleList.CAMP_STOVE_FIRE_START

Referenced by ParticleFireStartStart().

◆ PARTICLE_SMALL_FIRE

◆ PARTICLE_SMALL_SMOKE

◆ PARTICLE_STEAM_END

◆ PARTICLE_STEAM_EXTINGUISHING

protected int PARTICLE_STEAM_EXTINGUISHING = ParticleList.CAMP_STEAM_EXTINGUISH_START

◆ PLACEMENT_HEIGHT_LIMIT

protected const float PLACEMENT_HEIGHT_LIMIT = 0.1

◆ RAIN_EFFECT_LIMIT

protected const float RAIN_EFFECT_LIMIT = 0.4

Referenced by Cooling(), and Heating().

◆ RAIN_WETNESS_INCREASE

protected const float RAIN_WETNESS_INCREASE = 0.02

snowfall level that triggers fireplace to start soaking

Referenced by Cooling(), and Heating().

◆ SMOKING_SLOT_COUNT

const int SMOKING_SLOT_COUNT = 4

Referenced by Cooling(), Heating(), and SmokingSlotsInUse().

◆ SMOKING_SPEED

const float SMOKING_SPEED = 1

◆ SNOWFALL_EFFECT_LIMIT

protected const float SNOWFALL_EFFECT_LIMIT = 1.3

rain level that triggers fireplace to start soaking

Referenced by Cooling(), and Heating().

◆ SNOWFALL_WETNESS_INCREASE

protected const float SNOWFALL_WETNESS_INCREASE = 0.01

value for calculating of wetness that fireplace gain when raining

Referenced by Cooling(), and Heating().

◆ SOUND_FIRE_EXTINGUISHED

const string SOUND_FIRE_EXTINGUISHED = "ExtinguishByWaterEnd_SoundSet"

◆ SOUND_FIRE_EXTINGUISHING

const string SOUND_FIRE_EXTINGUISHING = "ExtinguishByWater_SoundSet"

◆ SOUND_FIRE_HEAVY

const string SOUND_FIRE_HEAVY = "HeavyFire_SoundSet"

Referenced by SoundFireHeavyStart().

◆ SOUND_FIRE_LIGHT

const string SOUND_FIRE_LIGHT = "LightFire_SoundSet"

Referenced by SoundFireLightStart().

◆ SOUND_FIRE_NO_FIRE

const string SOUND_FIRE_NO_FIRE = "NoFuelFire_SoundSet"

Referenced by SoundFireNoFireStart().

◆ TEMPERATURE_LOSS_MP_DEFAULT

const float TEMPERATURE_LOSS_MP_DEFAULT = 1.0

DEPRECATED value for calculation of heat transfered from fireplace through air to player (environment)

◆ TEMPERATURE_LOSS_MP_OVEN

const float TEMPERATURE_LOSS_MP_OVEN = 0.75

◆ TEMPERATURE_LOSS_MP_STONES

const float TEMPERATURE_LOSS_MP_STONES = 0.90

◆ TIMER_COOLING_UPDATE_INTERVAL

const int TIMER_COOLING_UPDATE_INTERVAL = 3

update interval duration of heating process (seconds)

Referenced by AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), Cooling(), and StartCooling().

◆ TIMER_HEATING_UPDATE_INTERVAL

const int TIMER_HEATING_UPDATE_INTERVAL = 3

timer constants

temperature threshold for starting coooking process (degree Celsius)

Referenced by AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), Cooling(), Heating(), and StartHeating().

◆ WET

enum FireplaceFireState WET = 1

◆ WET_SURFACE_INCREMENT

protected const float WET_SURFACE_INCREMENT = 0.06

Referenced by Heating().

◆ WIND

enum FireplaceFireState WIND = 0