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

◆ IsSwapBetweenHandsAndGroundLargeItem()

bool ManBase::IsSwapBetweenHandsAndGroundLargeItem ( notnull EntityAI item1,
notnull EntityAI item2,
out EntityAI item_hands,
out EntityAI item_ground )
inlineprotected

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

8644 {
8645 InventoryLocation il = new InventoryLocation;
8646 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8647 item_hands = item1;
8648 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8649 item_hands = item2;
8650 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8651 item_ground = item1;
8652 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8653 item_ground = item2;
8654
8655 return item_hands && item_ground && item_ground.IsHeavyBehaviour();
8656 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки InventoryLocation::GetType().

Используется в PredictiveSwapEntities().