2308 {
2309
2310 float wetness =
GetWet();
2311 wetness = wetness + amount;
2314
2315
2316 if (amount > 0)
2317 {
2319 temperature = temperature * (1 - (wetness * 0.5));
2321 SetTemperatureDirect(temperature);
2324 }
2325 }
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'.