DayZ 1.30
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 строка 1355

1356 {
1357 float wetFactor;
1358 float healthFactor;
1359
1360 float heatIsolation = pItem.GetHeatIsolation();
1361 float itemHealthLabel = pItem.GetHealthLevel();
1362 float itemWetness = pItem.GetWet();
1363
1365 if ( itemWetness >= GameConstants.STATE_DRY && itemWetness < GameConstants.STATE_DAMP )
1366 {
1368 }
1369 else if ( itemWetness >= GameConstants.STATE_DAMP && itemWetness < GameConstants.STATE_WET )
1370 {
1372 }
1373 else if ( itemWetness >= GameConstants.STATE_WET && itemWetness < GameConstants.STATE_SOAKING_WET )
1374 {
1376 }
1377 else if ( itemWetness >= GameConstants.STATE_SOAKING_WET && itemWetness < GameConstants.STATE_DRENCHED )
1378 {
1380 }
1381 else if ( itemWetness >= GameConstants.STATE_DRENCHED )
1382 {
1384 }
1385
1387 switch (itemHealthLabel)
1388 {
1391 break;
1392
1395 break;
1396
1399 break;
1400
1403 break;
1404
1407 break;
1408 }
1409
1411 heatIsolation *= healthFactor;
1412 heatIsolation *= wetFactor;
1413
1414 return heatIsolation;
1415 }
const float ENVIRO_ISOLATION_WETFACTOR_SOAKED
Определения 3_Game/DayZ/constants.c:824
const float ENVIRO_ISOLATION_WETFACTOR_WET
Определения 3_Game/DayZ/constants.c:823
const float ENVIRO_ISOLATION_WETFACTOR_DAMP
Определения 3_Game/DayZ/constants.c:822
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
Определения 3_Game/DayZ/constants.c:825
const float ENVIRO_ISOLATION_HEALTHFACTOR_RUINED
Определения 3_Game/DayZ/constants.c:831
const float ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED
Определения 3_Game/DayZ/constants.c:829
const float ENVIRO_ISOLATION_HEALTHFACTOR_WORN
Определения 3_Game/DayZ/constants.c:828
const float ENVIRO_ISOLATION_WETFACTOR_DRY
impact of item wetness to the heat isolation
Определения 3_Game/DayZ/constants.c:821
const float ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE
impact of item health (state) to the heat isolation
Определения 3_Game/DayZ/constants.c:827
const float ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED
Определения 3_Game/DayZ/constants.c:830
const int STATE_RUINED
Определения 3_Game/DayZ/constants.c:909
const int STATE_WORN
Определения 3_Game/DayZ/constants.c:912
const int STATE_DAMAGED
Определения 3_Game/DayZ/constants.c:911
const int STATE_BADLY_DAMAGED
Определения 3_Game/DayZ/constants.c:910
const int STATE_PRISTINE
Определения 3_Game/DayZ/constants.c:913
const float STATE_DRY
Определения 3_Game/DayZ/constants.c:937
const float STATE_DAMP
Определения 3_Game/DayZ/constants.c:936
const float STATE_SOAKING_WET
Определения 3_Game/DayZ/constants.c:934
const float STATE_DRENCHED
Определения 3_Game/DayZ/constants.c:933
const float STATE_WET
Определения 3_Game/DayZ/constants.c:935

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