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

◆ PhysicalPredictiveDropItem()

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

from hands

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

9343 {
9344 vector dir;
9345 ItemBase item = ItemBase.Cast(entity);
9346
9348 if (GetItemInHands() == item)
9349 {
9350 return PredictiveDropEntity(item);
9351 }
9352 else
9353 {
9354 ActionManagerClient actionManager = ActionManagerClient.Cast(m_ActionManager);
9355 if (actionManager)
9356 {
9357 ActionTarget actionTarget = new ActionTarget(null, null, -1, vector.Zero, -1);
9358 if (actionManager.GetAction(ActionDropItemSimple).Can(this, actionTarget, item))
9359 {
9360 actionManager.PerformActionStart(actionManager.GetAction(ActionDropItemSimple), actionTarget, item);
9361 return true;
9362 }
9363 }
9364 else
9365 return true;
9366 }
9367
9368 return false;
9369 }
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:8752
ItemBase GetItemInHands()
Определения PlayerBase.c:6437
ActionManagerBase m_ActionManager
Определения PlayerBase.c:90

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