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)
567 {
568 float wetDelta = 0;
570 {
573 {
574 wetDelta = 1;
575 }
577 {
578 wetDelta = 0.66;
579 }
581 {
582 wetDelta = 0.66;
583 }
585 {
586 wetDelta = 0.33;
587 }
588 }
590 {
593
596 }
597 else
598 {
601
603 if (weatherEffect <= 0)
604 {
605 weatherEffect = 1.0;
606 }
607
610 {
612 }
613 }
614
615 return wetDelta;
616 }
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.