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

◆ GetProtectionLevel()

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

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

186 {
188 }
189
190 override float GetProtectionLevel(int type, bool consider_filter = false, int system = 0)
191 {
192 if (IsDamageDestroyed())
193 return 0.0;
194
195 InventoryLocation inventoryLocation = new InventoryLocation();
196 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
197
198 if (inventoryLocation.GetSlot() == InventorySlots.MASK)
199 {
200 switch (type)
201 {
bool IsDamageDestroyed(ActionTarget target)
Определения ActionBase.c:1275
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:30
provides access to slot configuration
Определения InventorySlots.c:6
override float GetProtectionLevel(int type, bool consider_filter=false, int system=0)
Определения consumables.c:182
const int DEF_DUST_PARTICLE_BREATH
Определения 3_Game/DayZ/constants.c:549