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

◆ CanLoadItemIntoCargo()

override bool FryingPan::CanLoadItemIntoCargo ( EntityAI item)
inlineprotected

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

91 {
92 if ( !super.CanLoadItemIntoCargo( item ) )
93 return false;
94
95 if ( IsCargoException4x3( item ) )
96 return false;
97
98 //can 'this' be attached to the item (->assumed smaller size than item)?
99 int slotId;
100 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
101 {
102 slotId = GetInventory().GetSlotId(i);
103 if (item.GetInventory().HasAttachmentSlot(slotId))
104 {
105 //Print("CanLoadItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
106 return false;
107 }
108 }
109
110 return true;
111 }
bool IsCargoException4x3(EntityAI item)
Определения ItemBase.c:9419

Перекрестные ссылки IsCargoException4x3().