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

◆ CanJump()

bool DayZPlayer::CanJump ( )
inlineprotected

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

1786 {
1787 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState())
1788 return false;
1789
1790 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1791 return false;
1792
1793 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised jump on cotroller
1794 {
1795 return false;
1796 }
1797
1798 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1799 if (!hibcfg.m_bJumpAllowed)
1800 return false;
1801
1802 if (!DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_ERECT) || !DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_RAISEDERECT))
1803 return false;
1804
1805 HumanCommandMove hcm = GetCommand_Move();
1806 if (hcm)
1807 {
1808 if (hcm.IsChangingStance())
1809 return false;
1810 }
1811
1812 HumanCommandSwim hcs = GetCommand_Swim();
1813 if (hcs)
1814 {
1815 return false;
1816 }
1817
1818 return true;
1819 }
void DayZPlayerUtils()
cannot be instantiated
Определения DayZPlayerUtils.c:465
bool IsFBSymptomPlaying()
Определения DayZPlayerImplement.c:489
bool IsInFBEmoteState()
Checks if fullbody animation or specific locked state is active in emote manager.
ref HumanMovementState m_MovementState
time step for gradual update of dead screen visibilibty up to full visbility [s]
Определения DayZPlayerImplement.c:92
bool IsRestrained()
bool IsRaised()
Определения DayZPlayerImplement.c:4005
proto native bool IsChangingStance()
returns true if character is changing stance
bool m_bJumpAllowed
default false
Определения humanitems.c:39
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
class HumanCommandLadder HumanCommandSwim()
Определения human.c:695
void HumanCommandMove()
Определения human.c:534

Перекрестные ссылки DayZPlayerUtils(), HumanCommandSwim(), HumanCommandMove::IsChangingStance(), IsFBSymptomPlaying(), IsInFBEmoteState(), IsRaised(), IsRestrained(), HumanItemBehaviorCfg::m_bJumpAllowed и m_MovementState.