1810 {
1811 float temperature;
1812 float temperatureModifier = 0;
1813
1816
1817
1819 {
1821 return;
1822 }
1823 else
1824 {
1826 {
1828 return;
1829 }
1830 }
1831
1832
1835
1836
1837 float rain =
g_Game.GetWeather().GetRain().GetActual();
1838 float combinedWindAndSnowfall = MiscGameplayFunctions.GetCombinedSnowfallWindValue();
1839
1841 {
1842 if (rain > combinedWindAndSnowfall)
1843 {
1846 }
1847 else
1848 {
1851 }
1852 }
1853
1854 else
1855 {
1857 }
1858
1859 if (m_SurfaceUnderWetnessModifier > 0.0)
1861
1862
1864 temperature =
Math.
Clamp(temperature,
g_Game.GetMission().GetWorldData().GetBaseEnvTemperatureAtObject(
this),
m_UTSLFireplace.m_NormalFireplaceTemperatureMax);
1865 SetTemperatureDirect(temperature);
1869
1870
1872
1873
1875 {
1877 }
1878
1879
1881
1882
1884 {
1886 }
1887
1888 float cookingItemTemperature;
1889 int i;
1890
1892 {
1894 {
1896 {
1899 }
1900 }
1901 }
1902
1903
1905 {
1907 {
1909 {
1911 }
1912 }
1913 }
1914
1915
1917 {
1920 {
1922 }
1924 }
1925 else
1927
1929 }
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)
static float GetNoiseReduction(Weather weather)
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.