DayZ 1.27
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 строка 1211

1212 {
1213 float wetFactor;
1214 float healthFactor;
1215
1216 float heatIsolation = pItem.GetHeatIsolation();
1217 float itemHealthLabel = pItem.GetHealthLevel();
1218 float itemWetness = pItem.GetWet();
1219
1221 if ( itemWetness >= GameConstants.STATE_DRY && itemWetness < GameConstants.STATE_DAMP )
1222 {
1224 }
1225 else if ( itemWetness >= GameConstants.STATE_DAMP && itemWetness < GameConstants.STATE_WET )
1226 {
1228 }
1229 else if ( itemWetness >= GameConstants.STATE_WET && itemWetness < GameConstants.STATE_SOAKING_WET )
1230 {
1232 }
1233 else if ( itemWetness >= GameConstants.STATE_SOAKING_WET && itemWetness < GameConstants.STATE_DRENCHED )
1234 {
1236 }
1237 else if ( itemWetness >= GameConstants.STATE_DRENCHED )
1238 {
1240 }
1241
1243 switch (itemHealthLabel)
1244 {
1247 break;
1248
1251 break;
1252
1255 break;
1256
1259 break;
1260
1263 break;
1264 }
1265
1267 heatIsolation *= healthFactor;
1268 heatIsolation *= wetFactor;
1269
1270 return heatIsolation;
1271 }
Определения constants.c:659
const float ENVIRO_ISOLATION_WETFACTOR_SOAKED
Определения constants.c:774
const float ENVIRO_ISOLATION_WETFACTOR_WET
Определения constants.c:773
const float ENVIRO_ISOLATION_WETFACTOR_DAMP
Определения constants.c:772
const float ENVIRO_ISOLATION_WETFACTOR_DRENCHED
Определения constants.c:775
const float ENVIRO_ISOLATION_HEALTHFACTOR_RUINED
Определения constants.c:781
const float ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED
Определения constants.c:779
const float ENVIRO_ISOLATION_HEALTHFACTOR_WORN
Определения constants.c:778
const float ENVIRO_ISOLATION_WETFACTOR_DRY
impact of item wetness to the heat isolation
Определения constants.c:771
const float ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE
impact of item health (state) to the heat isolation
Определения constants.c:777
const float ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED
Определения constants.c:780
const int STATE_RUINED
Определения constants.c:846
const int STATE_WORN
Определения constants.c:849
const int STATE_DAMAGED
Определения constants.c:848
const int STATE_BADLY_DAMAGED
Определения constants.c:847
const int STATE_PRISTINE
Определения constants.c:850
const float STATE_DRY
Определения constants.c:874
const float STATE_DAMP
Определения constants.c:873
const float STATE_SOAKING_WET
Определения constants.c:871
const float STATE_DRENCHED
Определения constants.c:870
const float STATE_WET
Определения constants.c:872

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