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

◆ GetCurrentItemHeatIsolation()

static float GetCurrentItemHeatIsolation ( ItemBase pItem)
staticprotected

item heat isolation (from cfg)

item health (state)

item wetness

wet factor selection

health factor selection

apply factors

См. определение в файле MiscGameplayFunctions.c строка 1218

1219 {
1220 float wetFactor;
1221 float healthFactor;
1222
1223 float heatIsolation = pItem.GetHeatIsolation();
1224 float itemHealthLabel = pItem.GetHealthLevel();
1225 float itemWetness = pItem.GetWet();
1226
1228 if ( itemWetness >= GameConstants.STATE_DRY && itemWetness < GameConstants.STATE_DAMP )
1229 {
1231 }
1232 else if ( itemWetness >= GameConstants.STATE_DAMP && itemWetness < GameConstants.STATE_WET )
1233 {
1235 }
1236 else if ( itemWetness >= GameConstants.STATE_WET && itemWetness < GameConstants.STATE_SOAKING_WET )
1237 {
1239 }
1240 else if ( itemWetness >= GameConstants.STATE_SOAKING_WET && itemWetness < GameConstants.STATE_DRENCHED )
1241 {
1243 }
1244 else if ( itemWetness >= GameConstants.STATE_DRENCHED )
1245 {
1247 }
1248
1250 switch (itemHealthLabel)
1251 {
1254 break;
1255
1258 break;
1259
1262 break;
1263
1266 break;
1267
1270 break;
1271 }
1272
1274 heatIsolation *= healthFactor;
1275 heatIsolation *= wetFactor;
1276
1277 return heatIsolation;
1278 }
const float ENVIRO_ISOLATION_WETFACTOR_SOAKED
Определения 3_Game/constants.c:776
const float ENVIRO_ISOLATION_WETFACTOR_WET
Определения 3_Game/constants.c:775
const float ENVIRO_ISOLATION_WETFACTOR_DAMP
Определения 3_Game/constants.c:774
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
Определения 3_Game/constants.c:777
const float ENVIRO_ISOLATION_HEALTHFACTOR_RUINED
Определения 3_Game/constants.c:783
const float ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED
Определения 3_Game/constants.c:781
const float ENVIRO_ISOLATION_HEALTHFACTOR_WORN
Определения 3_Game/constants.c:780
const float ENVIRO_ISOLATION_WETFACTOR_DRY
impact of item wetness to the heat isolation
Определения 3_Game/constants.c:773
const float ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE
impact of item health (state) to the heat isolation
Определения 3_Game/constants.c:779
const float ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED
Определения 3_Game/constants.c:782
const int STATE_RUINED
Определения 3_Game/constants.c:848
const int STATE_WORN
Определения 3_Game/constants.c:851
const int STATE_DAMAGED
Определения 3_Game/constants.c:850
const int STATE_BADLY_DAMAGED
Определения 3_Game/constants.c:849
const int STATE_PRISTINE
Определения 3_Game/constants.c:852
const float STATE_DRY
Определения 3_Game/constants.c:876
const float STATE_DAMP
Определения 3_Game/constants.c:875
const float STATE_SOAKING_WET
Определения 3_Game/constants.c:873
const float STATE_DRENCHED
Определения 3_Game/constants.c:872
const float STATE_WET
Определения 3_Game/constants.c:874

Перекрестные ссылки GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_RUINED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_WORN, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DAMP, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DRENCHED, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DRY, GameConstants::ENVIRO_ISOLATION_WETFACTOR_SOAKED, GameConstants::ENVIRO_ISOLATION_WETFACTOR_WET, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_DRY, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, GameConstants::STATE_SOAKING_WET, GameConstants::STATE_WET и GameConstants::STATE_WORN.