1979 {
1981 float temperatureModifier = 0;
1982
1985
1986
1988 {
1990 return;
1991 }
1992
1993 float target =
Math.
Max(
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),10);
1994
1995 if (temperature > target)
1996 {
1997
1999 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
2000
2002 {
2003 if (rain > combinedWindAndSnowfall)
2004 {
2007 }
2008 else
2009 {
2012 }
2013 }
2014 else
2015 {
2017 }
2018
2019
2020 float wetness =
GetWet();
2022
2023
2024 target =
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this);
2025
2027 flatWetTarget =
Math.
Clamp(flatWetTarget,target,GetTemperatureMax());
2028 SetTemperatureDirect(flatWetTarget);
2029
2034
2035
2037
2038
2040
2041
2043 {
2045
2047 {
2048
2050 }
2051 }
2052
2053 float cookingItemTemperature;
2054 int i;
2055
2056
2058 {
2060 {
2063 }
2064 }
2065
2066
2068 {
2070 {
2073 }
2074 }
2075 }
2076 else
2077 {
2079 }
2080 }
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)
proto native Weather GetWeather()
Returns weather controller object.
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native float GetActual()
proto native CGame GetGame()
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'.