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 } |
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 FireConsumableType > | m_FireConsumableTypes |
protected ref map< ItemBase, ref FireConsumable > | m_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 | |
enum FireplaceFireState |
References AddDamageToItemByFireEx().
fireplace cargo only (recursive)
cargo item attachments
fuel & kindling
References ATTACHMENT_COOKINGSTAND, ATTACHMENT_TRIPOD, GameInventory::EnumerateInventory(), GameConstants::FIRE_ATTACHMENT_DAMAGE_PER_SECOND, IsFuel(), IsKindling(), m_CoolingTimer, m_HeatingTimer, PARAM_BURN_DAMAGE_COEF, GameConstants::STATE_BADLY_DAMAGED, TIMER_COOLING_UPDATE_INTERVAL, and TIMER_HEATING_UPDATE_INTERVAL.
Referenced by AddDamageToItemByFire(), and BurnItemsInFireplace().
protected void AddTemperatureToFireplace | ( | float | amount | ) |
DEPRECATED.
protected void AddTemperatureToItemByFire | ( | ItemBase | item | ) |
protected void AddToFireConsumables | ( | ItemBase | item | ) |
References CalcAndSetQuantity(), GetFireConsumableTypeEnergy(), and m_FireConsumables.
Referenced by FireplaceBase::EEItemAttached(), and FireplaceIndoor::EEItemAttached().
void AddWetnessToFireplace | ( | float | amount | ) |
References Math::Clamp().
Referenced by BurnItemsInFireplace().
override void AfterStoreLoad | ( | ) |
References GetGame(), IsBurning(), StartFire(), and Synchronize().
protected void BurnItemsInFireplace | ( | ) |
cargo
attachments
References AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), AddWetnessToItem(), CargoBase::GetItem(), CargoBase::GetItemCount(), and PARAM_WET_HEATING_DECREASE_COEF.
protected void CalcAndSetQuantity | ( | ) |
References GetGame(), GetQuantityMax(), m_FireConsumables, m_TotalEnergy, and SetQuantity().
Referenced by AddToFireConsumables(), CAContinuousEmpty::Cancel(), CAContinuousEmptyMagazine::Cancel(), CAContinuousFill::Cancel(), CAContinuousFillBrakes::Cancel(), CAContinuousFillCoolant::Cancel(), CAContinuousFillFuel::Cancel(), CAContinuousFillOil::Cancel(), CAContinuousQuantity::Cancel(), CAContinuousQuantityLiquidTransfer::Cancel(), CAContinuousTransferQuantity::Cancel(), CAContinuousDisinfectPlant::Execute(), CAContinuousEmpty::Execute(), CAContinuousEmptyMagazine::Execute(), CAContinuousFertilizeGardenSlot::Execute(), CAContinuousFill::Execute(), CAContinuousFillBrakes::Execute(), CAContinuousFillCoolant::Execute(), CAContinuousFillFuel::Execute(), CAContinuousFillOil::Execute(), CAContinuousFillPowerGenerator::Execute(), CAContinuousQuantity::Execute(), CAContinuousQuantityLiquidTransfer::Execute(), CAContinuousQuantityRepeat::Execute(), CAContinuousTransferQuantity::Execute(), CAContinuousWaterPlant::Execute(), CAContinuousWaterSlot::Execute(), CASingleUseQuantity::Execute(), OnAttachmentQuantityChanged(), RemoveFromFireConsumables(), and SpendFireConsumable().
protected void CalcAndSetTotalEnergy | ( | ) |
References CGame::ConfigGetFloat(), CGame::ConfigIsExisting(), GetGame(), m_FireConsumableTypes, m_TotalEnergy, and quantityMax.
Referenced by FireplaceBase().
References GetGame(), PLACEMENT_HEIGHT_LIMIT, and CGame::SurfaceGetType3D().
bool CanBuildOven | ( | ) |
References GetAttachedStonesCount(), HasStoneCircle(), IsBurning(), IsOven(), IsSpaceForOven(), and MIN_STONES_TO_BUILD_OVEN.
bool CanBuildStoneCircle | ( | ) |
References GetAttachedStonesCount(), HasStoneCircle(), IsBurning(), IsOven(), IsSpaceForCircle(), and MIN_STONES_TO_BUILD_CIRCLE.
bool CanCookOnStick | ( | ) |
References PARAM_COOKING_TEMP_THRESHOLD.
bool CanDismantleOven | ( | ) |
References DirectCookingSlotsInUse(), IsBurning(), IsOven(), MAX_TEMPERATURE_TO_DISMANTLE_OVEN, and SmokingSlotsInUse().
bool CanDismantleStoneCircle | ( | ) |
References HasStoneCircle(), IsBurning(), and IsOven().
bool CanExtinguishFire | ( | ) |
References IsBurning().
override bool CanHaveTemperature | ( | ) |
Referenced by Entity::CanFreeze(), Entity::EEInit(), Edible_Base::EEItemLocationChanged(), Entity::InitItemVariables(), Edible_Base::OnVariablesSynchronized(), InventoryItem::ProcessItemTemperature(), Entity::ProcessVariables(), InventoryItem::ProcessVariables(), Entity::RefreshTemperatureAccess(), and Entity::SetTemperatureEx().
override bool CanHaveWetness | ( | ) |
References IsBurning(), IsFuel(), and IsKindling().
bool CanShowSmoke | ( | ) |
override bool CanSwapEntities | ( | EntityAI | otherItem, |
InventoryLocation | otherDestination, | ||
InventoryLocation | destination | ||
) |
References InventoryLocation::GetParent().
override void CheckForDestroy | ( | ) |
References FireplaceBase::IsPrepareToDelete(), and m_HalfExtents.
Referenced by FireplaceBase::ContactEvent(), FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), and OnChildItemRemoved().
void ClearCookingEquipment | ( | ) |
DEPRECATED.
References FireplaceBase::SetCookingEquipment().
Referenced by FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), and ItemBase::EEItemDetached().
void ClearCookingEquipment | ( | ItemBase | pItem | ) |
References m_CookingProcess, and FireplaceBase::SetCookingEquipment().
References m_CookingProcess.
protected void CookWithEquipment | ( | ) |
References m_CookingEquipment, and m_CookingProcess.
protected void Cooling | ( | ) |
References AddWetnessToFireplace(), BurnItemsInFireplace(), CheckForRoofLimited(), Math::Clamp(), CookOnDirectSlot(), CookWithEquipment(), DIRECT_COOKING_SLOT_COUNT, DirectCookingSlotsInUse(), g_Game, WeatherPhenomenon::GetActual(), GetFuelCount(), GetGame(), Weather::GetRain(), CGame::GetWeather(), GetWet(), IsBurning(), FireplaceBase::IsOpen(), IsOven(), m_CookingEquipment, m_DirectCookingSlots, m_SmokingSlots, m_UTSLFireplace, m_UTSource, m_UTSSettings, PARAM_COOKING_TEMP_THRESHOLD, PARAM_TEMPERATURE_DECREASE, PARAM_WET_COOLING_DECREASE_COEF, RAIN_EFFECT_LIMIT, RAIN_WETNESS_INCREASE, UniversalTemperatureSourceLambdaFireplace::SetFuelCount(), SmokeOnSmokingSlot(), SMOKING_SLOT_COUNT, SmokingSlotsInUse(), SNOWFALL_EFFECT_LIMIT, SNOWFALL_WETNESS_INCREASE, StopCooling(), GameConstants::TEMP_COEF_FIREPLACE_COOLING, TIMER_COOLING_UPDATE_INTERVAL, TIMER_HEATING_UPDATE_INTERVAL, and UniversalTemperatureSourceLambdaFireplace::UpdateFireplaceTemperature().
void CreateAreaDamage | ( | ) |
References DestroyAreaDamage(), AreaDamageComponentTypes::HITZONE, and m_AreaDamage.
Referenced by ItemBase::UpdateAttachmentVisuals().
void DestroyAreaDamage | ( | ) |
void DestroyFireplace | ( | ) |
[DEPRECATED]
bool DirectCookingSlotsInUse | ( | ) |
References DIRECT_COOKING_SLOT_COUNT, and m_DirectCookingSlots.
Referenced by CanDismantleOven(), FireplaceBase::CanPutInCargo(), FireplaceBase::CanPutIntoHands(), Cooling(), Heating(), and StopCooling().
override bool DisassembleOnLastDetach | ( | ) |
override void EEDelete | ( | EntityAI | parent | ) |
References SetFireState(), and StopAllParticlesAndSounds().
override void EEInit | ( | ) |
References FireplaceBase::SetCookingEquipment().
protected void FireplaceBase | ( | ) |
References ATTACHMENT_BANDAGE, ATTACHMENT_BARK_BIRCH, ATTACHMENT_BARK_OAK, ATTACHMENT_BOOK, ATTACHMENT_EYEMASK_COLORBASE, ATTACHMENT_FIREWOOD, ATTACHMENT_GIFTWRAP, ATTACHMENT_PAPER, ATTACHMENT_PUNCHEDCARD, ATTACHMENT_RAGS, ATTACHMENT_STICKS, CalcAndSetTotalEnergy(), FUEL_BURN_RATE_DEFAULT, GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, UniversalTemperatureSourceSettings::m_ActiveTemperatureThreshold, UniversalTemperatureSourceSettings::m_EnableOnTemperatureControl, m_FireConsumables, m_FireConsumableTypes, m_HalfExtents, UniversalTemperatureSourceSettings::m_InactiveTemperatureThreshold, UniversalTemperatureSourceSettings::m_ManualUpdate, UnderObjectDecalSpawnSettings::m_PositionOffset, UnderObjectDecalSpawnSettings::m_RandomizeRotation, UniversalTemperatureSourceSettings::m_RangeFull, UniversalTemperatureSourceSettings::m_RangeMax, UnderObjectDecalSpawnSettings::m_ScaleMax, UniversalTemperatureSourceSettings::m_TemperatureCap, UniversalTemperatureSourceSettings::m_TemperatureItemCap, m_UnderObjectDecalSpawnSettings, m_UTSSettings, PARAM_FULL_HEAT_RADIUS, PARAM_HEAT_RADIUS, PARAM_MAX_TRANSFERED_TEMPERATURE, SetFuelBurnRateMP(), and vector::Zero.
References Math::Clamp().
Referenced by ParticleNormalSmokeStart(), and ParticleSmallSmokeStart().
int GetAttachedStonesCount | ( | ) |
References ATTACHMENT_STONES, and HasStones().
Referenced by CanBuildOven(), and CanBuildStoneCircle().
References vector::Distance(), GetPosition, MIN_CEILING_HEIGHT, and DayZPhysics::RaycastRV().
Referenced by ParticleNormalSmokeStart(), and ParticleSmallSmokeStart().
ItemBase GetCookingEquipment | ( | ) |
References m_CookingEquipment.
Referenced by ItemBase::RemoveCookingAudioVisuals(), and StopCooling().
Cooking GetCookingProcess | ( | ) |
References m_CookingProcess.
override void GetDebugActions | ( | out TSelectableActionInfoArrayEx | outputList | ) |
References SAT_DEBUG_ACTION.
override string GetDeploySoundset | ( | ) |
protected FireConsumable GetFireConsumableByItem | ( | ItemBase | item | ) |
References m_FireConsumables.
Referenced by FireplaceBase::EEItemDetached(), and FireplaceIndoor::EEItemDetached().
support for inherited classes; second pass of lookup inside FireConsumableType
References FireConsumableType::GetEnergy(), and m_FireConsumableTypes.
Referenced by AddToFireConsumables().
protected vector GetFireEffectPosition | ( | ) |
protected int GetFireState | ( | ) |
References m_FireState.
Referenced by Heating(), RefreshFireParticlesAndSounds(), and RefreshFireState().
protected float GetFuelBurnRateMP | ( | ) |
References m_FuelBurnRateMP.
Referenced by Heating().
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().
bool GetIgniteFailure | ( | ) |
References m_NoIgnite.
Referenced by FireplaceBase::IsThisIgnitionSuccessful(), and FireplaceIndoor::IsThisIgnitionSuccessful().
protected FireConsumable GetItemToConsume | ( | ) |
References m_ItemToConsume.
Referenced by SpendFireConsumable().
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().
FireplaceLight GetLightEntity | ( | ) |
References m_Light.
Referenced by RefreshFireplaceVisuals(), and ~FireplaceBase().
References g_Game, and Surface::GetParamFloat().
Referenced by OnItemLocationChanged().
protected float GetTemperatureLossMP | ( | ) |
determines how fast will the fireplace loose its temperature when cooling (lower is better)
References m_TemperatureLossMP.
bool HasAnyKindling | ( | ) |
bool HasAshes | ( | ) |
bool HasCookingStand | ( | ) |
References InventorySlots::GetSlotIdFromString().
Referenced by FireplaceBase::CanPutInCargo(), FireplaceBase::CanPutIntoHands(), and Heating().
bool HasLastAttachment | ( | ) |
bool HasLastFuelKindlingAttached | ( | ) |
References GetFuelCount(), and GetKindlingCount().
bool HasStoneCircle | ( | ) |
bool HasStones | ( | ) |
References ATTACHMENT_STONES.
Referenced by FireplaceBase::CanPutInCargo(), FireplaceBase::CanPutIntoHands(), GetAttachedStonesCount(), and RefreshFireplaceVisuals().
protected void Heating | ( | ) |
References NoiseSystem::AddNoisePos(), AddWetnessToFireplace(), BurnItemsInFireplace(), CheckForRoofLimited(), Math::Clamp(), CookOnDirectSlot(), CookWithEquipment(), DIRECT_COOKING_SLOT_COUNT, DirectCookingSlotsInUse(), g_Game, WeatherPhenomenon::GetActual(), GetFireState(), GetFuelBurnRateMP(), GetFuelCount(), GetGame(), NoiseAIEvaluate::GetNoiseReduction(), CGame::GetNoiseSystem(), GetPosition, Weather::GetRain(), CGame::GetWeather(), GetWet(), HasCookingStand(), FireplaceBase::IsOpen(), IsOven(), m_CanNoise, m_CookingEquipment, m_DirectCookingSlots, m_FireConsumables, m_NoisePar, UniversalTemperatureSourceLambdaFireplace::m_NormalFireplaceTemperatureMax, m_SmokingSlots, m_UTSLFireplace, m_UTSource, m_UTSSettings, PARAM_BURN_WET_THRESHOLD, PARAM_FIRE_CONSUM_RATE_AMOUNT, PARAM_TEMPERATURE_DECREASE, PARAM_TEMPERATURE_INCREASE, PARAM_WET_HEATING_DECREASE_COEF, RAIN_EFFECT_LIMIT, RAIN_WETNESS_INCREASE, RefreshFireState(), UniversalTemperatureSourceLambdaFireplace::SetCurrentTemperature(), UniversalTemperatureSourceLambdaFireplace::SetFuelCount(), SmokeOnSmokingSlot(), SMOKING_SLOT_COUNT, SmokingSlotsInUse(), SNOWFALL_EFFECT_LIMIT, SNOWFALL_WETNESS_INCREASE, SpendFireConsumable(), StopFire(), Synchronize(), TIMER_HEATING_UPDATE_INTERVAL, and WET_SURFACE_INCREMENT.
protected void InitializeTemperatureSources | ( | ) |
bool IsBarrelWithHoles | ( | ) |
bool IsBaseFireplace | ( | ) |
bool IsBurning | ( | ) |
References m_IsBurning.
Referenced by AfterStoreLoad(), FireplaceBase::AfterStoreLoad(), FireplaceBase::CanBeIgnitedBy(), CanBuildOven(), CanBuildStoneCircle(), CanDismantleOven(), CanDismantleStoneCircle(), CanExtinguishFire(), FireplaceBase::CanExtinguishFire(), FireplaceBase::CanIgniteItem(), FireplaceIndoor::CanIgniteItem(), FireplaceBase::CanPutInCargo(), FireplaceBase::CanPutIntoHands(), FireplaceBase::CanReceiveAttachment(), CanReleaseAttachment(), FireplaceBase::CanReleaseAttachment(), Cooling(), FireplaceBase::IsIgnited(), FireplaceIndoor::IsIgnited(), IsPrepareToDelete(), FireplaceBase::IsPrepareToDelete(), RefreshFireplaceVisuals(), RefreshFireState(), StartFire(), and StopFire().
bool IsCargoEmpty | ( | ) |
Referenced by FireplaceBase::CanPutInCargo(), and FireplaceBase::CanPutIntoHands().
bool IsCeilingHighEnoughForSmoke | ( | ) |
Referenced by FireplaceBase::IsThisIgnitionSuccessful().
override bool IsEmpty | ( | ) |
References GetGame(), and CGame::SurfaceGetType3D().
Referenced by FireplaceBase::CanIgniteEntityAsFireplace().
References string::Contains(), and g_Game.
bool IsFacingFireplace | ( | PlayerBase | player | ) |
DEPRECATED.
References ErrorEx.
override bool IsFireplace | ( | ) |
Referenced by TripodBase::CanSwapEntities().
bool IsFireplaceIndoor | ( | ) |
Referenced by RefreshFireplaceVisuals(), StartFire(), StartHeating(), and StopFire().
Returns if item attached to fireplace is fuel.
support for inherited classes; second pass of lookup inside FireConsumableType
References FireConsumableType::IsKindling(), and m_FireConsumableTypes.
Referenced by AddDamageToItemByFireEx(), FireplaceBase::CanReceiveAttachment(), CanReleaseAttachment(), FireplaceBase::CanReleaseAttachment(), FireplaceBase::EEItemAttached(), FireplaceIndoor::EEItemAttached(), FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), and GetFuelCount().
Referenced by SetBurntFirewood().
bool IsIndoorOven | ( | ) |
Referenced by RefreshFireplaceVisuals(), and FireplaceBase::RefreshPhysics().
Returns if item attached to fireplace is kindling.
support for inherited classes; second pass of lookup inside FireConsumableType
References FireConsumableType::IsKindling(), and m_FireConsumableTypes.
Referenced by AddDamageToItemByFireEx(), FireplaceBase::CanReceiveAttachment(), CanReleaseAttachment(), FireplaceBase::CanReleaseAttachment(), FireplaceBase::EEItemAttached(), FireplaceIndoor::EEItemAttached(), FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), and GetKindlingCount().
bool IsOnInteriorSurface | ( | ) |
Referenced by FireplaceBase::IsThisIgnitionSuccessful().
bool IsOnWaterSurface | ( | ) |
Referenced by FireplaceBase::IsThisIgnitionSuccessful().
override bool IsOpen | ( | ) |
bool IsOven | ( | ) |
References m_IsOven.
Referenced by CanBuildOven(), CanBuildStoneCircle(), CanDismantleOven(), CanDismantleStoneCircle(), FireplaceBase::CanDisplayAttachmentCategory(), FireplaceBase::CanObstruct(), FireplaceBase::CanProxyObstruct(), FireplaceBase::CanPutInCargo(), FireplaceBase::CanPutIntoHands(), FireplaceBase::CanReceiveAttachment(), FireplaceBase::CanReleaseAttachment(), FireplaceBase::CanShowSmoke(), Cooling(), FireplaceBase::EEItemAttached(), Heating(), FireplaceBase::IsThisIgnitionSuccessful(), OnItemLocationChanged(), OnVariablesSynchronized(), ParticleFireEndStart(), ParticleFireStartStart(), ParticleFireWindyNoIgniteStart(), ParticleNormalFireStart(), ParticleNormalSmokeStart(), ParticleSmallFireStart(), ParticleSmallSmokeStart(), RefreshFireplaceVisuals(), FireplaceBase::RefreshPhysics(), and StartHeating().
override bool IsPrepareToDelete | ( | ) |
References HasAshes(), IsBurning(), and IsEmpty().
Referenced by Entity::CheckForDestroy(), and Entity::TryDelete().
bool IsRainingAbove | ( | ) |
Referenced by FireplaceBase::IsThisIgnitionSuccessful().
override bool IsSelfAdjustingTemperature | ( | ) |
References m_CoolingTimer, and m_IsBurning.
References dBodyGetInteractionLayer(), GetGame(), and Vector().
Referenced by IsSpaceForCircle(), and IsSpaceForOven().
bool IsSpaceForCircle | ( | ) |
References IsSpaceFor(), and Vector().
Referenced by CanBuildStoneCircle().
bool IsSpaceForOven | ( | ) |
References IsSpaceFor(), and Vector().
Referenced by CanBuildOven().
bool IsWet | ( | ) |
|
static |
References GetGame(), CGame::GetWeather(), Weather::GetWindMaximumSpeed(), and Weather::GetWindSpeed().
Referenced by FireplaceBase::IsThisIgnitionSuccessful(), and StartHeating().
void LockOvenAttachments | ( | bool | lock | ) |
References CFG_VEHICLESPATH, CGame::ConfigGetTextArray(), GetGame(), InventorySlots::GetSlotIdFromString(), GetType(), and m_OvenAttachmentsLockState.
Referenced by RefreshFireplaceVisuals().
override bool OnAction | ( | int | action_id, |
Man | player, | ||
ParamsReadContext | ctx | ||
) |
References GetGame(), FireplaceBase::OnIgnitedThis(), and StopFire().
override void OnAttachmentQuantityChanged | ( | ItemBase | item | ) |
References CalcAndSetQuantity().
override void OnAttachmentRuined | ( | EntityAI | attachment | ) |
override void OnChildItemRemoved | ( | InventoryItem | item | ) |
References CheckForDestroy().
override void OnDebugSpawn | ( | ) |
References GetPosition, and ItemBase::SetQuantity().
References ScriptCallQueue::Call(), CALL_CATEGORY_GAMEPLAY, CheckForRoofLimited(), CGame::GetCallQueue(), GetGame(), GetSurfaceWetnessOnHeatModifier(), InventoryLocation::GetType(), FireplaceBase::IsOpen(), IsOven(), m_ThawnSurfaceUnderSupport, m_UnderObjectDecalSpawnComponent, m_UnderObjectDecalSpawnSettings, FireplaceBase::RefreshFireplacePhysics(), and UnderObjectDecalSpawnComponent().
override void OnRPC | ( | PlayerIdentity | sender, |
int | rpc_type, | ||
ParamsReadContext | ctx | ||
) |
override bool OnStoreLoad | ( | ParamsReadContext | ctx, |
int | version | ||
) |
References m_FuelBurnRateMP, m_HasAshes, m_IsBurning, m_TemperatureLossMP, and Serializer::Read().
override void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
References m_FuelBurnRateMP, m_HasAshes, m_IsBurning, and Serializer::Write().
override void OnVariablesSynchronized | ( | ) |
protected void ParticleFireEndStart | ( | ) |
References GetFireEffectPosition(), IsOven(), m_ParticleFireEnd, PARTICLE_FIRE_END, PARTICLE_OVEN_FIRE_END, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleFireEndStop | ( | ) |
References m_ParticleFireEnd, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleFireStartStart | ( | ) |
References GetFireEffectPosition(), IsOven(), m_ParticleFireStart, PARTICLE_FIRE_START, PARTICLE_OVEN_FIRE_START, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleFireStartStop | ( | ) |
References m_ParticleFireStart, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleFireWindyNoIgniteStart | ( | ) |
References GetFireEffectPosition(), IsOven(), m_ParticleFireEnd, PARTICLE_NO_IGNITE_WIND, PARTICLE_OVEN_FIRE_END, and PlayParticle().
Referenced by OnRPC().
protected void ParticleNormalFireStart | ( | ) |
References GetFireEffectPosition(), IsOven(), m_ParticleNormalFire, PARTICLE_NORMAL_FIRE, PARTICLE_OVEN_FIRE, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleNormalFireStop | ( | ) |
References m_ParticleNormalFire, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleNormalSmokeStart | ( | ) |
protected void ParticleNormalSmokeStop | ( | ) |
References m_ParticleNormalSmoke, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSmallFireStart | ( | ) |
References GetFireEffectPosition(), IsOven(), m_ParticleSmallFire, PARTICLE_OVEN_FIRE, PARTICLE_SMALL_FIRE, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSmallFireStop | ( | ) |
References m_ParticleSmallFire, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSmallSmokeStart | ( | ) |
protected void ParticleSmallSmokeStop | ( | ) |
References m_ParticleSmallSmoke, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSteamEndStart | ( | ) |
References GetFireEffectPosition(), m_ParticleSteamEnd, PARTICLE_STEAM_END, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSteamEndStop | ( | ) |
References m_ParticleSteamEnd, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSteamExtinguishingStart | ( | ) |
References GetFireEffectPosition(), m_ParticleSteamExtinguishing, PARTICLE_STEAM_EXTINGUISHING, and PlayParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleSteamExtinguishingStop | ( | ) |
References m_ParticleSteamExtinguishing, and StopParticle().
Referenced by RefreshFireParticlesAndSounds().
protected void ParticleWetNoIgniteStart | ( | ) |
References GetFireEffectPosition(), m_ParticleSteamEnd, PARTICLE_STEAM_END, and PlayParticle().
Referenced by OnRPC().
protected void ParticleWetNoIgniteStop | ( | ) |
References m_ParticleSteamEnd, and StopParticle().
protected bool PlayParticle | ( | out Particle | particle, |
int | particle_type, | ||
vector | pos, | ||
bool | worldpos = false |
||
) |
References GetGame(), and ParticleManager().
protected void RefreshFireParticlesAndSounds | ( | bool | force_refresh | ) |
References FireplaceBase::CanShowSmoke(), GetFireState(), m_LastFireState, ParticleFireEndStart(), ParticleFireEndStop(), ParticleFireStartStart(), ParticleFireStartStop(), ParticleNormalFireStart(), ParticleNormalFireStop(), FireplaceBase::ParticleNormalSmokeStart(), ParticleNormalSmokeStop(), ParticleSmallFireStart(), ParticleSmallFireStop(), FireplaceBase::ParticleSmallSmokeStart(), ParticleSmallSmokeStop(), ParticleSteamEndStart(), ParticleSteamEndStop(), ParticleSteamExtinguishingStart(), ParticleSteamExtinguishingStop(), SoundFireExtinguishedStart(), SoundFireExtinguishingStart(), SoundFireHeavyStart(), SoundFireLightStart(), SoundFireNoFireStart(), and SoundFireStop().
Referenced by OnVariablesSynchronized(), and FireplaceBase::OnVariablesSynchronized().
void RefreshFireplacePhysics | ( | ) |
void RefreshFireplaceVisuals | ( | ) |
single stone; everything else hidden
hide stones stack completely
References ANIMATION_ASHES, ANIMATION_BURNT_WOOD, ANIMATION_KINDLING, ANIMATION_OVEN, ANIMATION_STICKS, ANIMATION_STONE, ANIMATION_STONES, ANIMATION_WOOD, ATTACHMENT_FIREWOOD, ATTACHMENT_STICKS, ATTACHMENT_STONES, ScriptCallQueue::Call(), CALL_CATEGORY_GAMEPLAY, vector::DistanceSq(), FUEL_BURN_RATE_DEFAULT, FUEL_BURN_RATE_OVEN, FUEL_BURN_RATE_STONES, CGame::GetCallQueue(), GetGame(), GetKindlingCount(), GetLightEntity(), CGame::GetPlayer(), GetPosition, HasAshes(), HasStoneCircle(), HasStones(), FireplaceBase::IsBarrelWithHoles(), IsBurning(), IsFireplaceIndoor(), IsHologram(), FireplaceBase::IsIndoorOven(), IsItemTypeAttached(), IsOven(), IsWet(), LockOvenAttachments(), m_LightDistance, m_OvenAttachmentsLockState, FireplaceBase::RefreshFireplacePhysics(), SetFuelBurnRateMP(), and SetLightEntity().
Referenced by EEInit(), FireplaceBase::EEItemAttached(), FireplaceIndoor::EEItemAttached(), FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), OnVariablesSynchronized(), SetItemToConsume(), and Synchronize().
void RefreshFireState | ( | ) |
References GetFireState(), IsBurning(), PARAM_MIN_FIRE_TEMPERATURE, PARAM_SMALL_FIRE_TEMPERATURE, and SetFireState().
Referenced by Heating().
protected void RemoveFromFireConsumables | ( | FireConsumable | fire_consumable | ) |
References CalcAndSetQuantity(), FireConsumable::GetItem(), and m_FireConsumables.
Referenced by FireplaceBase::EEItemDetached(), FireplaceIndoor::EEItemDetached(), and SpendFireConsumable().
protected void SetAshesState | ( | bool | has_ashes | ) |
References m_HasAshes.
Referenced by SpendFireConsumable().
protected void SetBurningState | ( | bool | is_burning | ) |
References m_IsBurning.
Referenced by StartFire(), and StopFire().
protected void SetBurntFirewood | ( | ) |
DEPRECATED.
References ANIMATION_BURNT_WOOD, ANIMATION_WOOD, GetGame(), and IsInAnimPhase().
void SetCookingEquipment | ( | ItemBase | equipment | ) |
References m_CookingEquipment.
void SetExtinguishingState | ( | ) |
References SetFireState().
protected void SetFireState | ( | FireplaceFireState | state | ) |
References m_FireState, and Synchronize().
Referenced by EEDelete(), RefreshFireState(), SetExtinguishingState(), StopCooling(), and StopFire().
protected void SetFuelBurnRateMP | ( | float | value | ) |
References m_FuelBurnRateMP.
Referenced by FireplaceBase(), and RefreshFireplaceVisuals().
void SetIgniteFailure | ( | bool | failure | ) |
References m_NoIgnite.
Referenced by FireplaceBase::IsThisIgnitionSuccessful(), and FireplaceIndoor::IsThisIgnitionSuccessful().
protected FireConsumable SetItemToConsume | ( | ) |
References FireConsumable::GetEnergy(), m_FireConsumables, m_ItemToConsume, and RefreshFireplaceVisuals().
Referenced by SpendFireConsumable(), and StartFire().
void SetLightEntity | ( | FireplaceLight | light | ) |
References m_Light.
Referenced by RefreshFireplaceVisuals().
void SetOvenState | ( | bool | is_oven | ) |
References InventorySlots::GetSlotIdFromString(), m_IsOven, and Synchronize().
void SetStoneCircleState | ( | bool | has_stonecircle | ) |
References InventorySlots::GetSlotIdFromString(), m_HasStoneCircle, and Synchronize().
protected void SetTemperatureLossMP | ( | float | value | ) |
References m_TemperatureLossMP.
References m_CookingProcess.
bool SmokingSlotsInUse | ( | ) |
References m_SmokingSlots, and SMOKING_SLOT_COUNT.
Referenced by CanDismantleOven(), FireplaceBase::CanPutIntoHands(), Cooling(), and Heating().
protected void SoundFireExtinguishedStart | ( | ) |
References m_SoundFire, and SOUND_FIRE_EXTINGUISHED.
Referenced by RefreshFireParticlesAndSounds().
protected void SoundFireExtinguishingStart | ( | ) |
References m_SoundFireLoop, and SOUND_FIRE_EXTINGUISHING.
Referenced by RefreshFireParticlesAndSounds().
protected void SoundFireHeavyStart | ( | ) |
References m_SoundFireLoop, and SOUND_FIRE_HEAVY.
Referenced by RefreshFireParticlesAndSounds().
protected void SoundFireLightStart | ( | ) |
References m_SoundFireLoop, and SOUND_FIRE_LIGHT.
Referenced by RefreshFireParticlesAndSounds().
protected void SoundFireNoFireStart | ( | ) |
References m_SoundFireLoop, and SOUND_FIRE_NO_FIRE.
Referenced by RefreshFireParticlesAndSounds().
protected void SoundFireStop | ( | ) |
References m_SoundFireLoop.
Referenced by OnRPC(), and RefreshFireParticlesAndSounds().
protected void SoundFireWetNoIgniteStart | ( | ) |
References m_SoundFire, and SOUND_FIRE_EXTINGUISHED.
Referenced by OnRPC().
protected void SoundFireWindyNoIgniteStart | ( | ) |
References m_SoundFire.
Referenced by OnRPC().
protected void SpendFireConsumable | ( | float | amount | ) |
References CalcAndSetQuantity(), FireConsumable::GetEnergy(), FireConsumable::GetItem(), GetItemToConsume(), FireConsumable::GetRemainingEnergy(), HasAshes(), RemoveFromFireConsumables(), SetAshesState(), SetItemToConsume(), and FireConsumable::SetRemainingEnergy().
Referenced by Heating(), and StopFire().
protected void StartCooling | ( | ) |
References CALL_CATEGORY_GAMEPLAY, m_CookingProcess, m_CoolingTimer, m_HeatingTimer, Timer::Stop(), and TIMER_COOLING_UPDATE_INTERVAL.
Referenced by StopFire().
void StartFire | ( | bool | force_start = false | ) |
References CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), CheckForRoofLimited(), CGame::GetCallQueue(), GetGame(), IsBurning(), IsFireplaceIndoor(), m_CoolingTimer, SetBurningState(), SetItemToConsume(), StartHeating(), Timer::Stop(), and Synchronize().
Referenced by AfterStoreLoad(), FireplaceBase::OnIgnitedThis(), and FireplaceIndoor::OnIgnitedThis().
protected void StartHeating | ( | ) |
References CALL_CATEGORY_GAMEPLAY, FireplaceBase::CreateAreaDamage(), GetWet(), FireplaceBase::IsBarrelWithHoles(), FireplaceBase::IsBaseFireplace(), IsFireplaceIndoor(), FireplaceBase::IsOpen(), IsOven(), IsWindy(), m_CookingProcess, m_HeatingTimer, m_NoisePar, MATERIAL_FIREPLACE_GLOW, NoiseParams(), PARAM_BURN_WET_THRESHOLD, StopFire(), and TIMER_HEATING_UPDATE_INTERVAL.
Referenced by StartFire().
protected void StopAllParticlesAndSounds | ( | ) |
protected void StopCooling | ( | ) |
References Class::CastTo(), DestroyAreaDamage(), DIRECT_COOKING_SLOT_COUNT, DirectCookingSlotsInUse(), GameInventory::GetCargo(), GetCookingEquipment(), CargoBase::GetItem(), CargoBase::GetItemCount(), m_CoolingTimer, m_DirectCookingSlots, Edible_Base::MakeSoundsOnClient(), MATERIAL_FIREPLACE_NOGLOW, SetFireState(), and Timer::Stop().
Referenced by Cooling().
void StopFire | ( | FireplaceFireState | fire_state = FireplaceFireState.END_FIRE | ) |
References CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), CheckForRoofLimited(), CGame::GetCallQueue(), GetGame(), IsBurning(), IsFireplaceIndoor(), SetBurningState(), SetFireState(), SpendFireConsumable(), StartCooling(), StopHeating(), and Synchronize().
Referenced by Heating(), OnAction(), and StartHeating().
protected void StopHeating | ( | ) |
References m_HeatingTimer, and Timer::Stop().
Referenced by StopFire().
void Synchronize | ( | ) |
protected void TransferHeatToNearPlayers | ( | ) |
DEPRECATED.
protected void ~FireplaceBase | ( | ) |
const string ANIMATION_ASHES = "Ashes" |
Referenced by RefreshFireplaceVisuals().
const string ANIMATION_BURNT_WOOD = "BurntWood" |
Referenced by RefreshFireplaceVisuals(), and SetBurntFirewood().
const string ANIMATION_CAULDRON_HANDLE = "handle1Rotate" |
Referenced by FireplaceBase::EEItemAttached(), and FireplaceBase::EEItemDetached().
const string ANIMATION_COOKWARE_HANDLE = "handleRotate" |
Referenced by FireplaceBase::EEItemAttached(), and FireplaceBase::EEItemDetached().
const string ANIMATION_INVENTORY = "Inventory" |
const string ANIMATION_KINDLING = "Kindling" |
Referenced by RefreshFireplaceVisuals().
const string ANIMATION_OVEN = "Oven" |
Referenced by RefreshFireplaceVisuals(), and FireplaceBase::RefreshPhysics().
const string ANIMATION_STICKS = "Sticks" |
Referenced by RefreshFireplaceVisuals().
const string ANIMATION_STONE = "Stone" |
Referenced by RefreshFireplaceVisuals().
const string ANIMATION_STONES = "StonesCircle" |
Referenced by RefreshFireplaceVisuals().
const string ANIMATION_TRIPOD = "Tripod" |
Referenced by FireplaceBase::RefreshPhysics().
const string ANIMATION_WOOD = "Wood" |
Referenced by RefreshFireplaceVisuals(), and SetBurntFirewood().
ATTACHMENT_BANDAGE = BandageDressing |
Referenced by FireplaceBase().
ATTACHMENT_BARK_BIRCH = Bark_Birch |
Referenced by FireplaceBase().
ATTACHMENT_BARK_OAK = Bark_Oak |
Referenced by FireplaceBase().
ATTACHMENT_BOOK = ItemBook |
Referenced by FireplaceBase().
ATTACHMENT_CAULDRON = Cauldron |
ATTACHMENT_COOKING_POT = Pot |
ATTACHMENT_COOKINGSTAND = CookingStand |
Referenced by AddDamageToItemByFireEx(), and OnAttachmentRuined().
ATTACHMENT_EYEMASK_COLORBASE = EyeMask_ColorBase |
Referenced by FireplaceBase().
ATTACHMENT_FIREWOOD = Firewood |
Referenced by FireplaceBase(), and RefreshFireplaceVisuals().
ATTACHMENT_FRYING_PAN = FryingPan |
Referenced by FireplaceBase::CanLoadAttachment(), and FireplaceBase::CanReceiveAttachment().
ATTACHMENT_GIFTWRAP = GiftWrapPaper |
Referenced by FireplaceBase().
ATTACHMENT_PAPER = Paper |
Referenced by FireplaceBase().
ATTACHMENT_PUNCHEDCARD = PunchedCard |
Referenced by FireplaceBase().
ATTACHMENT_RAGS = Rag |
Referenced by FireplaceBase().
ATTACHMENT_STICKS = WoodenStick |
Referenced by FireplaceBase(), and RefreshFireplaceVisuals().
ATTACHMENT_STONES = Stone |
ATTACHMENT_TRIPOD = Tripod |
const int DIRECT_COOKING_SLOT_COUNT = 3 |
direct cooking slots
update interval duration of cooling process (seconds)
Referenced by Cooling(), DirectCookingSlotsInUse(), Heating(), and StopCooling().
const float DIRECT_COOKING_SPEED = 1.5 |
how much will temperature increase when attached on burning fireplace (degree Celsius)
const float FUEL_BURN_RATE_DEFAULT = 1.0 |
min height of ceiling for fire to be ignited
Referenced by FireplaceBase(), and RefreshFireplaceVisuals().
const float FUEL_BURN_RATE_OVEN = 0.85 |
Referenced by RefreshFireplaceVisuals().
const float FUEL_BURN_RATE_STONES = 0.92 |
Referenced by RefreshFireplaceVisuals().
const float IGNITE_WIND_THRESHOLD = 0.8 |
const int LIFETIME_FIREPLACE_STONE_CIRCLE = 172800 |
const int LIFETIME_FIREPLACE_STONE_OVEN = 604800 |
protected ref AreaDamageManager m_AreaDamage |
protected Object m_ClutterCutter |
protected ItemBase m_CookingEquipment |
Referenced by CookWithEquipment(), Cooling(), GetCookingEquipment(), Heating(), SetCookingEquipment(), and ItemBase::SetCookingEquipment().
protected ref Cooking m_CookingProcess |
determines how fast will the fuel item burn before spending (lower is better)
Referenced by ClearCookingEquipment(), ItemBase::ClearCookingEquipment(), CookOnDirectSlot(), CookWithEquipment(), ItemBase::CookWithEquipment(), EEInit(), ItemBase::EEInit(), GetCookingProcess(), ItemBase::OnSwitchOff(), SmokeOnSmokingSlot(), StartCooling(), and StartHeating().
protected ref Timer m_CoolingTimer |
protected ItemBase m_DirectCookingSlots[DIRECT_COOKING_SLOT_COUNT] |
protected ref map<ItemBase, ref FireConsumable> m_FireConsumables |
|
static |
Referenced by CalcAndSetTotalEnergy(), FireplaceBase(), GetFireConsumableTypeEnergy(), IsFuel(), and IsKindling().
protected FireplaceFireState m_FireState = FireplaceFireState.NO_FIRE |
Referenced by GetFireState(), and SetFireState().
protected float m_FuelBurnRateMP = 1.0 |
Referenced by GetFuelBurnRateMP(), OnStoreLoad(), OnStoreSave(), and SetFuelBurnRateMP().
protected vector m_HalfExtents |
protected bool m_HasAshes = false |
Referenced by HasAshes(), OnStoreLoad(), OnStoreSave(), and SetAshesState().
protected bool m_HasStoneCircle = false |
Referenced by HasStoneCircle(), FireplaceBase::OnStoreLoad(), FireplaceBase::OnStoreSave(), and SetStoneCircleState().
protected ref Timer m_HeatingTimer |
value for calculating of wetness that fireplace gain when raining
Referenced by AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), StartCooling(), StartHeating(), and StopHeating().
enum FireplaceFireState m_IsBurning = false |
Referenced by IsBurning(), IsSelfAdjustingTemperature(), OnStoreLoad(), OnStoreSave(), OnVariablesSynchronized(), and SetBurningState().
protected bool m_IsOven = false |
Referenced by IsOven(), FireplaceBase::OnStoreLoad(), FireplaceBase::OnStoreSave(), and SetOvenState().
protected ref FireConsumable m_ItemToConsume |
Referenced by GetItemToConsume(), and SetItemToConsume().
protected FireplaceFireState m_LastFireState = FireplaceFireState.NO_FIRE |
Referenced by RefreshFireParticlesAndSounds().
protected FireplaceLight m_Light |
protected float m_LightDistance = 2000 |
protected bool m_NoIgnite = false |
Referenced by GetIgniteFailure(), and SetIgniteFailure().
ref NoiseParams m_NoisePar |
protected int m_OvenAttachmentsLockState = -1 |
Referenced by LockOvenAttachments(), and RefreshFireplaceVisuals().
protected Particle m_ParticleFireEnd |
protected Particle m_ParticleFireStart |
Referenced by ParticleFireStartStart(), ParticleFireStartStop(), and StopAllParticlesAndSounds().
protected Particle m_ParticleNormalFire |
Referenced by ParticleNormalFireStart(), ParticleNormalFireStop(), and StopAllParticlesAndSounds().
protected Particle m_ParticleNormalSmoke |
protected Particle m_ParticleSmallFire |
Referenced by ParticleSmallFireStart(), ParticleSmallFireStop(), and StopAllParticlesAndSounds().
protected Particle m_ParticleSmallSmoke |
protected Particle m_ParticleSteamEnd |
protected Particle m_ParticleSteamExtinguishing |
Referenced by ParticleSteamExtinguishingStart(), ParticleSteamExtinguishingStop(), and StopAllParticlesAndSounds().
protected ItemBase m_SmokingSlots[SMOKING_SLOT_COUNT] |
protected EffectSound m_SoundFire |
protected EffectSound m_SoundFireLoop |
protected float m_TemperatureLossMP = 1.0 |
value for calculating of wetness that fireplace gain when raining
Referenced by GetTemperatureLossMP(), OnStoreLoad(), and SetTemperatureLossMP().
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().
protected float m_TotalEnergy |
Referenced by CalcAndSetQuantity(), and CalcAndSetTotalEnergy().
protected ref UnderObjectDecalSpawnComponent m_UnderObjectDecalSpawnComponent |
Referenced by EEInit(), OnItemLocationChanged(), OnVariablesSynchronized(), and ~FireplaceBase().
protected ref UnderObjectDecalSpawnSettings m_UnderObjectDecalSpawnSettings |
protected ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace |
protected ref UniversalTemperatureSource m_UTSource |
Referenced by Cooling(), BuildingSuper::EEDelete(), BuildingSuper::EEInit(), ItemBase::EEInit(), CarScript::EEInit(), CarScript::EOnPostSimulate(), Heating(), InitializeTemperatureSources(), FireplaceBase::InitializeTemperatureSources(), CarScript::OnEngineStart(), CarScript::OnEngineStop(), ItemBase::OnSwitchOff(), ItemBase::OnSwitchOn(), ItemBase::OnWork(), ItemBase::OnWorkStart(), and ItemBase::OnWorkStop().
protected ref UniversalTemperatureSourceSettings m_UTSSettings |
Referenced by FireplaceBase::BarrelHoles_ColorBase(), Cooling(), BuildingSuper::EEInit(), ItemBase::EEInit(), CarScript::EEInit(), CarScript::EOnPostSimulate(), FireplaceBase::Fireplace(), FireplaceBase(), FireplaceFireBarrel::FireplaceFireBarrel(), FireplaceIndoor::FireplaceIndoor(), Heating(), InitializeTemperatureSources(), FireplaceBase::InitializeTemperatureSources(), ItemBase::OnWork(), and FireplaceBase::OvenIndoor().
const string MATERIAL_FIREPLACE_GLOW = "dz\\gear\\cooking\\data\\stoneground.rvmat" |
Referenced by StartHeating().
const string MATERIAL_FIREPLACE_NOGLOW = "dz\\gear\\cooking\\data\\stonegroundnoemit.rvmat" |
Referenced by StopCooling().
const int MAX_TEMPERATURE_TO_DISMANTLE_OVEN = 40 |
minimum amount of stones for oven
Referenced by CanDismantleOven().
const string MESSAGE_BURY_ASHES_FAILED_BURNING = "Cannot bury ashes, the fireplace is still burning." |
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_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 MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. Fireplace is ruined." |
const string MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water." |
const string MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire." |
const string MESSAGE_IGNITE_RAIN = "The fire went out because of the rain." |
const string MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited." |
const string MESSAGE_IGNITE_UNDER_LOW_ROOF = "I cannot ignite the fireplace here, the is not enough room." |
const string MESSAGE_IGNITE_WIND = "The fire went out because of the wind." |
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 float MIN_CEILING_HEIGHT = 5 |
maximum temperature for dismantling oven
Referenced by GetCeilingHeight().
const int MIN_STONES_TO_BUILD_CIRCLE = 8 |
maximum value for temperature that will be transfered to player (environment)
Referenced by CanBuildStoneCircle().
const int MIN_STONES_TO_BUILD_OVEN = 16 |
minimum amount of stones for circle
Referenced by CanBuildOven().
const string OBJECT_CLUTTER_CUTTER = "ClutterCutterFireplace" |
Referenced by FireplaceBase::AfterStoreLoad(), FireplaceBase::OnIgnitedThis(), and OnPlacementComplete().
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_BURN_WET_THRESHOLD = 0.40 |
maximum rain value when the fireplace can be ignited
Referenced by Heating(), and StartHeating().
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 PARAM_COOKING_TEMP_THRESHOLD = 100 |
cooking
Referenced by CanCookOnStick(), and Cooling().
const float PARAM_FIRE_CONSUM_RATE_AMOUNT = 0.5 |
value for calculating wetness loss during cooling process
Referenced by Heating().
const float PARAM_FULL_HEAT_RADIUS = 2.0 |
value for calculating damage on items located in fireplace cargo
Referenced by FireplaceBase().
const float PARAM_HEAT_RADIUS = 4.0 |
radius in which objects are fully heated by fire
Referenced by FireplaceBase().
const float PARAM_HEAT_THROUGH_AIR_COEF = 0.1 |
maximum value of temperature of items in fireplace when heating (degree Celsius)
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_ITEM_HEAT_MIN_TEMP = 40 |
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_ITEM_HEAT_TEMP_INCREASE_COEF = 10 |
DEPRECATED.
const float PARAM_MAX_ITEM_HEAT_TEMP_INCREASE = 200 |
multiplies temperature change on heating
const float PARAM_MAX_TRANSFERED_TEMPERATURE = 20 |
radius in which objects are heated by fire
Referenced by FireplaceBase().
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_FIRE_TEMPERATURE = 30 |
maximum fireplace temperature of an outdoor fire (degree Celsius)
Referenced by AddWetnessToFireplace(), and RefreshFireState().
const float PARAM_MIN_TEMP_TO_REIGNITE = 30 |
maximum wetness value when the fireplace can be ignited
const float PARAM_NORMAL_FIRE_TEMPERATURE = 1000 |
maximum fireplace temperature of a small fire (degree Celsius)
Referenced by AddWetnessToFireplace(), and InitializeTemperatureSources().
const float PARAM_OUTDOOR_FIRE_TEMPERATURE = 500 |
maximum fireplace temperature of a normal fire (degree Celsius)
Referenced by FireplaceBase::InitializeTemperatureSources().
const float PARAM_SMALL_FIRE_TEMPERATURE = 150 |
const float PARAM_TEMPERATURE_DECREASE = 3 |
const float PARAM_TEMPERATURE_INCREASE = 10 |
minimum fireplace temperature under which the fireplace is inactive (degree Celsius)
Referenced by Heating().
const float PARAM_WET_COOLING_DECREASE_COEF = 0.002 |
value for calculating wetness loss during heating process
Referenced by Cooling().
const float PARAM_WET_HEATING_DECREASE_COEF = 0.01 |
maximum wetness value when the fireplace is able to burn
Referenced by BurnItemsInFireplace(), and Heating().
const float PARAM_WET_INCREASE_COEF = 0.02 |
protected int PARTICLE_FIRE_END = ParticleList.CAMP_FIRE_END |
protected int PARTICLE_FIRE_START = ParticleList.CAMP_FIRE_START |
protected int PARTICLE_NO_IGNITE_WIND = ParticleList.CAMP_NO_IGNITE_WIND |
Referenced by ParticleFireWindyNoIgniteStart().
protected int PARTICLE_NORMAL_FIRE = ParticleList.CAMP_NORMAL_FIRE |
protected int PARTICLE_NORMAL_SMOKE = ParticleList.CAMP_NORMAL_SMOKE |
protected int PARTICLE_OVEN_FIRE = ParticleList.CAMP_STOVE_FIRE |
Referenced by ParticleNormalFireStart(), and ParticleSmallFireStart().
protected int PARTICLE_OVEN_FIRE_END = ParticleList.CAMP_STOVE_FIRE_END |
Referenced by ParticleFireEndStart(), and ParticleFireWindyNoIgniteStart().
protected int PARTICLE_OVEN_FIRE_START = ParticleList.CAMP_STOVE_FIRE_START |
Referenced by ParticleFireStartStart().
protected int PARTICLE_SMALL_FIRE = ParticleList.CAMP_SMALL_FIRE |
protected int PARTICLE_SMALL_SMOKE = ParticleList.CAMP_SMALL_SMOKE |
protected int PARTICLE_STEAM_END = ParticleList.CAMP_STEAM_2END |
protected int PARTICLE_STEAM_EXTINGUISHING = ParticleList.CAMP_STEAM_EXTINGUISH_START |
Referenced by ParticleSteamExtinguishingStart().
protected const float PLACEMENT_HEIGHT_LIMIT = 0.1 |
Referenced by GardenBase::CanBePlaced(), and CanBePlaced().
protected const float RAIN_WETNESS_INCREASE = 0.02 |
const int SMOKING_SLOT_COUNT = 4 |
Referenced by Cooling(), Heating(), and SmokingSlotsInUse().
const float SMOKING_SPEED = 1 |
protected const float SNOWFALL_EFFECT_LIMIT = 1.3 |
protected const float SNOWFALL_WETNESS_INCREASE = 0.01 |
const string SOUND_FIRE_EXTINGUISHED = "ExtinguishByWaterEnd_SoundSet" |
Referenced by SoundFireExtinguishedStart(), and SoundFireWetNoIgniteStart().
const string SOUND_FIRE_EXTINGUISHING = "ExtinguishByWater_SoundSet" |
Referenced by SoundFireExtinguishingStart().
const string SOUND_FIRE_HEAVY = "HeavyFire_SoundSet" |
Referenced by SoundFireHeavyStart().
const string SOUND_FIRE_LIGHT = "LightFire_SoundSet" |
Referenced by SoundFireLightStart().
const string SOUND_FIRE_NO_FIRE = "NoFuelFire_SoundSet" |
Referenced by SoundFireNoFireStart().
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_OVEN = 0.75 |
const float TEMPERATURE_LOSS_MP_STONES = 0.90 |
const int TIMER_COOLING_UPDATE_INTERVAL = 3 |
update interval duration of heating process (seconds)
Referenced by AddDamageToItemByFireEx(), AddTemperatureToItemByFire(), Cooling(), and StartCooling().
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().
enum FireplaceFireState WET = 1 |
enum FireplaceFireState WIND = 0 |