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

◆ PhysicalPredictiveDropItem()

override bool ManBase::PhysicalPredictiveDropItem ( EntityAI entity,
bool heavy_item_only = true )
inlineprotected

from hands

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

8999 {
9000 vector dir;
9001 ItemBase item = ItemBase.Cast(entity);
9002
9004 if (GetItemInHands() == item)
9005 {
9006 return PredictiveDropEntity(item);
9007 }
9008 else
9009 {
9010 ActionManagerClient actionManager = ActionManagerClient.Cast(m_ActionManager);
9011 if (actionManager)
9012 {
9013 ActionTarget actionTarget = new ActionTarget(null, null, -1, vector.Zero, -1);
9014 if (actionManager.GetAction(ActionDropItemSimple).Can(this, actionTarget, item))
9015 {
9016 actionManager.PerformActionStart(actionManager.GetAction(ActionDropItemSimple), actionTarget, item);
9017 return true;
9018 }
9019 }
9020 else
9021 return true;
9022 }
9023
9024 return false;
9025 }
class ActionTargets ActionTarget
class GP5GasMask extends MaskBase ItemBase
void PerformActionStart(ActionBase action, ActionTarget target, ItemBase item, Param extra_data=NULL)
Определения ActionManagerClient.c:762
override bool PredictiveDropEntity(notnull EntityAI item)
Определения PlayerBase.c:8404
ItemBase GetItemInHands()
Определения PlayerBase.c:6210
ActionManagerBase m_ActionManager
Определения PlayerBase.c:43

Перекрестные ссылки ActionTarget, GetItemInHands(), m_ActionManager, ActionManagerClient::PerformActionStart(), PredictiveDropEntity() и vector::Zero.