2306 {
2307
2308 float wetness =
GetWet();
2309 wetness = wetness + amount;
2312
2313
2314 if (amount > 0)
2315 {
2317 temperature = temperature * (1 - (wetness * 0.5));
2319 SetTemperatureDirect(temperature);
2322 }
2323 }
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'.