2324 {
2325
2326 float wetness =
GetWet();
2327 wetness = wetness + amount;
2330
2331
2332 if (amount > 0)
2333 {
2334 float temperature = GetTemperature();
2335 temperature = temperature * (1 - (wetness * 0.5));
2337 SetTemperatureDirect(temperature);
2340 }
2341 }
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'.