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

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Same-frame protection against overlapping inputs

Ongoing move transition protection

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

85 {
86 if (!player || !item)
87 return false;
88
89 HumanInputController hic = player.GetInputController();
90 HumanCommandMove hcm = player.GetCommand_Move();
91
93 if (hic && (hic.IsStanceChange() || hic.IsThrowingModeChange()))
94 return false;
95
97 if (hcm && (hcm.IsChangingStance() || hcm.IsStandingFromBack()))
98 return false;
99
100 return true;
101 }
proto native bool IsStandingFromBack()
return true if prone on back is chaning to crounch/stand
proto native bool IsChangingStance()
returns true if character is changing stance
Определения human.c:454
proto native bool IsThrowingModeChange()
returns true if change of throwing mode has been requested
proto native bool IsStanceChange()
stance change button was pressed
Определения human.c:18

Перекрестные ссылки ActionTarget(), HumanCommandMove::IsChangingStance(), HumanInputController::IsStanceChange(), HumanCommandMove::IsStandingFromBack() и HumanInputController::IsThrowingModeChange().