1826 {
1827 float temperature;
1828 float temperatureModifier = 0;
1829
1832
1833
1835 {
1837 return;
1838 }
1839 else
1840 {
1842 {
1844 return;
1845 }
1846 }
1847
1848
1851
1852
1853 float rain =
g_Game.GetWeather().GetRain().GetActual();
1854 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
1855
1857 {
1858 if (rain > combinedWindAndSnowfall)
1859 {
1862 }
1863 else
1864 {
1867 }
1868 }
1869
1870 else
1871 {
1873 }
1874
1875 if (m_SurfaceUnderWetnessModifier > 0.0)
1877
1878
1880 temperature =
Math.
Clamp(temperature,
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),
m_UTSLFireplace.m_NormalFireplaceTemperatureMax);
1881 SetTemperatureDirect(temperature);
1885
1886
1887 temperature = GetTemperature();
1888
1889
1891 {
1893 }
1894
1895
1897
1898
1900 {
1902 }
1903
1904 float cookingItemTemperature;
1905 int i;
1906
1908 {
1910 {
1912 {
1915 }
1916 }
1917 }
1918
1919
1921 {
1923 {
1925 {
1927 }
1928 }
1929 }
1930
1931
1933 {
1936 {
1938 }
1940 }
1941 else
1943
1945 }
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 void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier=1.0)
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'.
vector GetPosition()
Get the world position of the Effect.