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

◆ CanReceiveItemIntoCargo()

override bool PlateCarrierPouches::CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

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

45 {
46 if (!super.CanReceiveItemIntoCargo(item))
47 return false;
48
49 if (GetInventory().IsAttachment())
50 {
51 return !GetHierarchyParent().GetInventory().IsInCargo() && (!item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer()));
52 }
53
54 return !item.GetInventory().GetCargo() || (item.GetInventory().GetCargo().GetItemCount() == 0 || item.IsContainer());
55 }