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

◆ CanContinueThrowing()

bool DayZPlayerImplementThrowing::CanContinueThrowing ( HumanInputController pHic)
inlineprivate

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

221 {
222 HumanItemBehaviorCfg itemInHandsCfg = m_Player.GetItemAccessor().GetItemInHandsBehaviourCfg();
223 HumanCommandMove hcm = m_Player.GetCommand_Move();
224 bool boo = false;
225 UAInterface input_interface = m_Player.GetInputInterface();
226 if(input_interface && input_interface.SyncedPress("UAGear"))
227 {
228 boo = true;
229 }
230
231 if( boo || pHic.IsWeaponRaised() || (m_bThrowingInProgress && hcm && (hcm.IsChangingStance() || hcm.IsStandingFromBack())) || (itemInHandsCfg && itemInHandsCfg.m_iType == ItemBehaviorType.HEAVY) )
232 {
233 return false;
234 }
235
236 if (!CheckFreeSpace() )
237 return false;
238
239 return true;
240 }
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
proto native bool IsWeaponRaised()
returns true if weapon is raised
int m_iType
Определения humanitems.c:15
proto native bool SyncedPress(string action, bool check_focus=true)
void HumanCommandMove()
Определения human.c:534

Перекрестные ссылки CheckFreeSpace(), HumanCommandMove::IsChangingStance(), HumanCommandMove::IsStandingFromBack(), HumanInputController::IsWeaponRaised(), m_bThrowingInProgress, HumanItemBehaviorCfg::m_iType, m_Player и UAInterface::SyncedPress().

Используется в CanContinueThrowingEx().