2299 {
2300
2301 float wetness =
GetWet();
2302 wetness = wetness + amount;
2305
2306
2307 if (amount > 0)
2308 {
2309 float temperature = GetTemperature();
2310 temperature = temperature * (1 - (wetness * 0.5));
2312 SetTemperatureDirect(temperature);
2315 }
2316 }
const float PARAM_NORMAL_FIRE_TEMPERATURE
maximum fireplace temperature of a small fire (degree Celsius)
const float PARAM_MIN_FIRE_TEMPERATURE
maximum fireplace temperature of an outdoor fire (degree Celsius)
ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace
int GetFuelCount()
Returns count of all fuel type items (define in 'm_FuelTypes') attached to fireplace.
override void SetWet(float value, bool allow_client=false)
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'.