DayZ 1.29
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 строка 1222

1223 {
1224 float wetFactor;
1225 float healthFactor;
1226
1227 float heatIsolation = pItem.GetHeatIsolation();
1228 float itemHealthLabel = pItem.GetHealthLevel();
1229 float itemWetness = pItem.GetWet();
1230
1232 if ( itemWetness >= GameConstants.STATE_DRY && itemWetness < GameConstants.STATE_DAMP )
1233 {
1235 }
1236 else if ( itemWetness >= GameConstants.STATE_DAMP && itemWetness < GameConstants.STATE_WET )
1237 {
1239 }
1240 else if ( itemWetness >= GameConstants.STATE_WET && itemWetness < GameConstants.STATE_SOAKING_WET )
1241 {
1243 }
1244 else if ( itemWetness >= GameConstants.STATE_SOAKING_WET && itemWetness < GameConstants.STATE_DRENCHED )
1245 {
1247 }
1248 else if ( itemWetness >= GameConstants.STATE_DRENCHED )
1249 {
1251 }
1252
1254 switch (itemHealthLabel)
1255 {
1258 break;
1259
1262 break;
1263
1266 break;
1267
1270 break;
1271
1274 break;
1275 }
1276
1278 heatIsolation *= healthFactor;
1279 heatIsolation *= wetFactor;
1280
1281 return heatIsolation;
1282 }
const float ENVIRO_ISOLATION_WETFACTOR_SOAKED
Определения 3_Game/DayZ/constants.c:779
const float ENVIRO_ISOLATION_WETFACTOR_WET
Определения 3_Game/DayZ/constants.c:778
const float ENVIRO_ISOLATION_WETFACTOR_DAMP
Определения 3_Game/DayZ/constants.c:777
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
Определения 3_Game/DayZ/constants.c:780
const float ENVIRO_ISOLATION_HEALTHFACTOR_RUINED
Определения 3_Game/DayZ/constants.c:786
const float ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED
Определения 3_Game/DayZ/constants.c:784
const float ENVIRO_ISOLATION_HEALTHFACTOR_WORN
Определения 3_Game/DayZ/constants.c:783
const float ENVIRO_ISOLATION_WETFACTOR_DRY
impact of item wetness to the heat isolation
Определения 3_Game/DayZ/constants.c:776
const float ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE
impact of item health (state) to the heat isolation
Определения 3_Game/DayZ/constants.c:782
const float ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED
Определения 3_Game/DayZ/constants.c:785
const int STATE_RUINED
Определения 3_Game/DayZ/constants.c:851
const int STATE_WORN
Определения 3_Game/DayZ/constants.c:854
const int STATE_DAMAGED
Определения 3_Game/DayZ/constants.c:853
const int STATE_BADLY_DAMAGED
Определения 3_Game/DayZ/constants.c:852
const int STATE_PRISTINE
Определения 3_Game/DayZ/constants.c:855
const float STATE_DRY
Определения 3_Game/DayZ/constants.c:879
const float STATE_DAMP
Определения 3_Game/DayZ/constants.c:878
const float STATE_SOAKING_WET
Определения 3_Game/DayZ/constants.c:876
const float STATE_DRENCHED
Определения 3_Game/DayZ/constants.c:875
const float STATE_WET
Определения 3_Game/DayZ/constants.c:877

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