Calculates penalty value for heatcomfort - this simulates uncovered body part reaction.
- Аргументы
-
pBodyPartSlotId | InventorySlot ID to check |
pCoef | external coefficient used for that slot |
- Возвращает
- Value of penalty for given slot ID
См. определение в файле Environment.c строка 1448
1449 {
1450 float penalty = 0.0;
1451
1453 {
1455 {
1457 penalty *= pCoef;
1458 }
1459 }
1460
1461 return penalty;
1462 }
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).
bool IsUnderRoof()
Is character under roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK)....
float m_Rain
target value of heatcomfort (non-buffered)
const float ENVIRO_NAKED_BODY_PENALTY_SNOWFALL_MIN_VALUE
how intensive a rain should be to enable rain penalty on naked body
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
const float ENVIRO_NAKED_BODY_PENALTY_RAIN_MIN_VALUE
Перекрестные ссылки GameConstants::ENVIRO_ISOLATION_WETFACTOR_DRENCHED, GameConstants::ENVIRO_NAKED_BODY_PENALTY_RAIN_MIN_VALUE, GameConstants::ENVIRO_NAKED_BODY_PENALTY_SNOWFALL_MIN_VALUE, IsChildOfType(), IsInsideBuilding(), IsUnderRoof(), IsWaterContact(), m_Rain и m_Snowfall.
Используется в ProcessHeatComfort().