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

◆ PredictiveTakeEntityToTargetCargoEx()

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

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

9088 {
9089 bool can_detach;
9090 if (CanRedirectToWeaponManager(item, can_detach))
9091 {
9092 if (can_detach)
9093 {
9094 InventoryLocation dst = new InventoryLocation;
9095 dst.SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
9096
9097 return GetWeaponManager().DetachMagazine(dst);
9098 }
9099 return false;
9100 }
9101 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
9102 }
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:2047
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8992
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:403

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