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

◆ CanContinueThrowing()

bool DayZPlayerImplementThrowing::CanContinueThrowing ( HumanInputController pHic)
inlineprivate

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

203 {
204 HumanItemBehaviorCfg itemInHandsCfg = m_Player.GetItemAccessor().GetItemInHandsBehaviourCfg();
205 bool boo = false;
206 UAInterface input_interface = m_Player.GetInputInterface();
207 if(input_interface && input_interface.SyncedPress("UAGear"))
208 {
209 boo = true;
210 }
211 if( boo || pHic.IsWeaponRaised() || (itemInHandsCfg && itemInHandsCfg.m_iType == ItemBehaviorType.HEAVY) )
212 {
213 return false;
214 }
215
216 if (!CheckFreeSpace() )
217 return false;
218
219 return true;
220 }
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)

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

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