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

◆ PredictiveTakeEntityToTargetCargoEx()

override bool ManBase::PredictiveTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
inlineprotected

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

8736 {
8737 bool can_detach;
8738 if (CanRedirectToWeaponManager(item, can_detach))
8739 {
8740 if (can_detach)
8741 {
8742 InventoryLocation dst = new InventoryLocation;
8743 dst.SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8744
8745 return GetWeaponManager().DetachMagazine(dst);
8746 }
8747 return false;
8748 }
8749 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
8750 }
proto native void SetCargoAuto(notnull CargoBase cargo, EntityAI e, int row, int col, bool flip)
based on Cargo.IsProxyCargo uses SetProxyCargo or SetCargo respectively
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1989
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8640
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:403

Перекрестные ссылки CanRedirectToWeaponManager(), GetWeaponManager() и InventoryLocation::SetCargoAuto().