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

◆ CanContinueThrowing()

bool DayZPlayerImplementThrowing::CanContinueThrowing ( HumanInputController pHic)
inlineprivate

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

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