DayZ 1.27
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 строка 8545

8546 {
8547 InventoryLocation il = new InventoryLocation;
8548 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8549 item_hands = item1;
8550 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8551 item_hands = item2;
8552 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8553 item_ground = item1;
8554 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8555 item_ground = item2;
8556
8557 return item_hands && item_ground && item_ground.IsHeavyBehaviour();
8558 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

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

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