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

◆ CanLoadItemIntoCargo()

override bool Pot::CanLoadItemIntoCargo ( EntityAI item)
inlineprivate

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

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

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