1981 {
1983 float temperatureModifier = 0;
1984
1987
1988
1990 {
1992 return;
1993 }
1994
1995 float target =
Math.
Max(
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),10);
1996
1997 if (temperature > target)
1998 {
1999
2000 float rain =
g_Game.GetWeather().GetRain().GetActual();
2001 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
2002
2004 {
2005 if (rain > combinedWindAndSnowfall)
2006 {
2009 }
2010 else
2011 {
2014 }
2015 }
2016 else
2017 {
2019 }
2020
2021
2022 float wetness =
GetWet();
2024
2025
2026 target =
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this);
2027
2029 flatWetTarget =
Math.
Clamp(flatWetTarget,target,GetTemperatureMax());
2030 SetTemperatureDirect(flatWetTarget);
2031
2036
2037
2039
2040
2042
2043
2045 {
2047
2049 {
2050
2052 }
2053 }
2054
2055 float cookingItemTemperature;
2056 int i;
2057
2058
2060 {
2062 {
2065 }
2066 }
2067
2068
2070 {
2072 {
2075 }
2076 }
2077 }
2078 else
2079 {
2081 }
2082 }
ref UniversalTemperatureSourceSettings m_UTSSettings
bool DirectCookingSlotsInUse()
const int DIRECT_COOKING_SLOT_COUNT
direct cooking slots
const int TIMER_HEATING_UPDATE_INTERVAL
timer constants
const int TIMER_COOLING_UPDATE_INTERVAL
update interval duration of heating process (seconds)
const float PARAM_TEMPERATURE_DECREASE
how much will temperature increase when fireplace is burning (degree Celsius per second)
void BurnItemsInFireplace()
void CookOnDirectSlot(ItemBase slot_item, float temp_equip, float temp_ext)
const float SNOWFALL_EFFECT_LIMIT
rain level that triggers fireplace to start soaking
const float PARAM_WET_COOLING_DECREASE_COEF
value for calculating wetness loss during heating process
const int SMOKING_SLOT_COUNT
void SmokeOnSmokingSlot(ItemBase slot_item, float temp_equip, float temp_ext)
const float SNOWFALL_WETNESS_INCREASE
value for calculating of wetness that fireplace gain when raining
ItemBase m_DirectCookingSlots[DIRECT_COOKING_SLOT_COUNT]
ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace
ref UniversalTemperatureSource m_UTSource
ItemBase m_CookingEquipment
ItemBase m_SmokingSlots[SMOKING_SLOT_COUNT]
int GetFuelCount()
Returns count of all fuel type items (define in 'm_FuelTypes') attached to fireplace.
const float RAIN_WETNESS_INCREASE
snowfall level that triggers fireplace to start soaking
const float PARAM_COOKING_TEMP_THRESHOLD
cooking
const float RAIN_EFFECT_LIMIT
void AddWetnessToFireplace(float amount)
override void CheckForRoofLimited(float timeTresholdMS=3000)
Roof check for entity, limited by time (anti-spam solution)
const float TEMP_COEF_FIREPLACE_COOLING
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.