DayZ 1.29
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 строка 8893

8894 {
8895 InventoryLocation il = new InventoryLocation;
8896 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8897 item_hands = item1;
8898 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
8899 item_hands = item2;
8900 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8901 item_ground = item1;
8902 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
8903 item_ground = item2;
8904
8905 return item_hands && item_ground && item_ground.IsHeavyBehaviour();
8906 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

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

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