DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ NakedBodyPartHeatComfortPenalty()

float NakedBodyPartHeatComfortPenalty ( int pBodyPartSlotId,
float pCoef )
protected

Calculates penalty value for heatcomfort - this simulates uncovered body part reaction.

Аргументы
pBodyPartSlotIdInventorySlot ID to check
pCoefexternal 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)
Определения Environment.c:330
bool IsWaterContact()
Is character in contact with water body? (periodically checked - GameConstants.ENVIRO_TICK_RATE).
Определения Environment.c:321
bool IsInsideBuilding()
Is character inside building? (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK).
Определения Environment.c:313
bool IsUnderRoof()
Is character under roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK)....
Определения Environment.c:305
float m_Rain
target value of heatcomfort (non-buffered)
Определения Environment.c:52
float m_Snowfall
Определения Environment.c:53
Определения CarScript.c:162
const float ENVIRO_NAKED_BODY_PENALTY_SNOWFALL_MIN_VALUE
how intensive a rain should be to enable rain penalty on naked body
Определения 3_Game/constants.c:788
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
Определения 3_Game/constants.c:777
const float ENVIRO_NAKED_BODY_PENALTY_RAIN_MIN_VALUE
Определения 3_Game/constants.c:787

Перекрестные ссылки 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().