1808 {
1809 float temperature;
1810 float temperatureModifier = 0;
1811
1814
1815
1817 {
1819 return;
1820 }
1821 else
1822 {
1824 {
1826 return;
1827 }
1828 }
1829
1830
1833
1834
1836 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
1837
1839 {
1840 if (rain > combinedWindAndSnowfall)
1841 {
1844 }
1845 else
1846 {
1849 }
1850 }
1851
1852 else
1853 {
1855 }
1856
1857 if (m_SurfaceUnderWetnessModifier > 0.0)
1859
1860
1862 temperature =
Math.
Clamp(temperature,
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),
m_UTSLFireplace.m_NormalFireplaceTemperatureMax);
1863 SetTemperatureDirect(temperature);
1867
1868
1870
1871
1873 {
1875 }
1876
1877
1879
1880
1882 {
1884 }
1885
1886 float cookingItemTemperature;
1887 int i;
1888
1890 {
1892 {
1894 {
1897 }
1898 }
1899 }
1900
1901
1903 {
1905 {
1907 {
1909 }
1910 }
1911 }
1912
1913
1915 {
1918 {
1920 }
1922 }
1923 else
1925
1927 }
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