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

◆ CanPutAsAttachment() [6/6]

override bool Inventory_Base::CanPutAsAttachment ( EntityAI parent)
inlineprivate

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

14 {
15 if (!super.CanPutAsAttachment(parent))
16 return false;
17
18 if (parent.IsSlotReserved(InventorySlots.GetSlotIdFromString("suppressorImpro")) || parent.IsSlotReserved(InventorySlots.GetSlotIdFromString("weaponMuzzle")))
19 return false;
20
21 if ( parent.FindAttachmentBySlotName("suppressorImpro") == null && parent.FindAttachmentBySlotName("weaponMuzzle") == null )
22 {
23 return true;
24 }
25 return false;
26 }

Перекрестные ссылки InventorySlots::GetSlotIdFromString().