1800 {
1801 float temperature;
1802 float temperatureModifier = 0;
1803
1806
1807
1809 {
1811 return;
1812 }
1813 else
1814 {
1816 {
1818 return;
1819 }
1820 }
1821
1822
1825
1826
1828 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
1829
1831 {
1832 if (rain > combinedWindAndSnowfall)
1833 {
1836 }
1837 else
1838 {
1841 }
1842 }
1843
1844 else
1845 {
1847 }
1848
1849 if (m_SurfaceUnderWetnessModifier > 0.0)
1851
1852
1854 temperature =
Math.
Clamp(temperature,
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),
m_UTSLFireplace.m_NormalFireplaceTemperatureMax);
1855 SetTemperatureDirect(temperature);
1859
1860
1861 temperature = GetTemperature();
1862
1863
1865 {
1867 }
1868
1869
1871
1872
1874 {
1876 }
1877
1878 float cookingItemTemperature;
1879 int i;
1880
1882 {
1884 {
1886 {
1889 }
1890 }
1891 }
1892
1893
1895 {
1897 {
1899 {
1901 }
1902 }
1903 }
1904
1905
1907 {
1910 {
1912 }
1914 }
1915 else
1917
1919 }
ref NoiseParams m_NoisePar
float GetFuelBurnRateMP()
ref UniversalTemperatureSourceSettings m_UTSSettings
const float WET_SURFACE_INCREMENT
bool DirectCookingSlotsInUse()
const int DIRECT_COOKING_SLOT_COUNT
direct cooking slots
const int TIMER_HEATING_UPDATE_INTERVAL
timer constants
const float PARAM_TEMPERATURE_DECREASE
how much will temperature increase when fireplace is burning (degree Celsius per second)
const float PARAM_TEMPERATURE_INCREASE
minimum fireplace temperature under which the fireplace is inactive (degree Celsius)
const float PARAM_FIRE_CONSUM_RATE_AMOUNT
value for calculating wetness loss during cooling process
void StopFire(FireplaceFireState fire_state=FireplaceFireState.END_FIRE)
void BurnItemsInFireplace()
void CookOnDirectSlot(ItemBase slot_item, float temp_equip, float temp_ext)
void SpendFireConsumable(float amount)
const float SNOWFALL_EFFECT_LIMIT
rain level that triggers fireplace to start soaking
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]
const float PARAM_BURN_WET_THRESHOLD
maximum rain value when the fireplace can be ignited
ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace
ref UniversalTemperatureSource m_UTSource
ref map< ItemBase, ref FireConsumable > m_FireConsumables
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 PARAM_WET_HEATING_DECREASE_COEF
maximum wetness value when the fireplace is able to burn
const float RAIN_WETNESS_INCREASE
snowfall level that triggers fireplace to start soaking
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 NoiseSystem GetNoiseSystem()
proto native Weather GetWeather()
Returns weather controller object.
static float GetNoiseReduction(Weather weather)
proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native float GetActual()
proto native CGame GetGame()
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'.
class JsonUndergroundAreaTriggerData GetPosition