Calculates soaking/drying delta based on character's location and weather.
player is getting wet by movement/swimming in water (+differentiate wetDelta by water level)
564 {
565 float wetDelta = 0;
567 {
570 {
571 wetDelta = 1;
572 }
574 {
575 wetDelta = 0.66;
576 }
578 {
579 wetDelta = 0.66;
580 }
582 {
583 wetDelta = 0.33;
584 }
585 }
587 {
590
593 }
594 else
595 {
598
600 if (weatherEffect <= 0)
601 {
602 weatherEffect = 1.0;
603 }
604
607 {
609 }
610 }
611
612 return wetDelta;
613 }
bool IsChildOfType(array< typename > typenames)
Returns true if character is child of given parent type(s)
bool IsWaterContact()
Is character in contact with water body? (periodically checked - GameConstants.ENVIRO_TICK_RATE).
bool IsInsideBuilding()
Is character inside building? (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK).
const float SNOWFALL_LIMIT_LOW
bool IsUnderRoof()
Is character under roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK)....
const float WATER_LEVEL_MID
float m_Rain
target value of heatcomfort (non-buffered)
const float SNOWFALL_WIND_COMBINED_THRESHOLD
const float WATER_LEVEL_LOW
const float WATER_LEVEL_NONE
const float WATER_LEVEL_HIGH
bool IsRaining()
Rain phenomenon actual value > RAIN_LIMIT_LOW.
float GetEnvironmentTemperature()
Calculations of temperarute for different situations.
bool IsSnowing()
Snowfall phenomenon actual value > SNOWFALL_LIMIT_LOW.
const float ENVIRO_FOG_DRY_EFFECT
how many % of ENVIRO_SUN_INCREMENT is reduced by cloudy sky
const float ENVIRO_DRY_INCREMENT
amount of wetness added to items wet value each tick if is raining
const float ENVIRO_CLOUD_DRY_EFFECT
how much is the generic temp effect increased when player is next to a fireplace
const float ENVIRO_WET_INCREMENT
in secs. how often we should check if player is under the roof (raycast)
const float ENVIRO_TICKS_TO_WETNESS_CALCULATION
in secs. how often should enviro effet process
const float ENVIRO_WIND_EFFECT
windchill effect on base temperature
const float ENVIRO_SNOW_WET_COEF
Above this value, the wind effect increases the modified temperature.
static proto float Max(float x, float y)
Returns bigger of two given values.