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

◆ GetProtectionLevel()

override float Shemag_ColorBase::GetProtectionLevel ( int type,
bool consider_filter = false,
int system = 0 )
inlineprivate

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

100 {
101 if (IsDamageDestroyed())
102 return 0.0;
103
104 InventoryLocation inventoryLocation = new InventoryLocation();
105 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
106
107 if (inventoryLocation.GetSlot() == InventorySlots.MASK)
108 {
109 switch (type)
110 {
112 return 0.65;
114 return 0.0;
115 }
116 }
117
118 return super.GetProtectionLevel(type, consider_filter, system);
119 }
bool IsDamageDestroyed(ActionTarget target)
Определения ActionBase.c:1275
proto native int GetSlot()
returns slot id if current type is Attachment
const int DEF_DUST_PARTICLE_BREATH
Определения 3_Game/DayZ/constants.c:549
const int DEF_DUST_PARTICLE_EYES
Определения 3_Game/DayZ/constants.c:550

Перекрестные ссылки DEF_DUST_PARTICLE_BREATH, DEF_DUST_PARTICLE_EYES, InventoryLocation::GetSlot() и IsDamageDestroyed().