DayZ 1.30
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 строка 9245

9246 {
9247 InventoryLocation il = new InventoryLocation;
9248 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
9249 item_hands = item1;
9250 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.HANDS)
9251 item_hands = item2;
9252 if (item1.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
9253 item_ground = item1;
9254 if (item2.GetInventory().GetCurrentInventoryLocation(il) && il.GetType() == InventoryLocationType.GROUND)
9255 item_ground = item2;
9256
9257 return item_hands && item_ground && item_ground.IsHeavyBehaviour();
9258 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

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

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