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 строка 1455
1456 {
1457 float penalty = 0.0;
1458
1460 {
1462 {
1464 penalty *= pCoef;
1465 }
1466 }
1467
1468 return penalty;
1469 }
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().