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

◆ CanJump()

bool DayZPlayer::CanJump ( )
inlineprotected

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

1770 {
1771 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState())
1772 return false;
1773
1774 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1775 return false;
1776
1777 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised jump on cotroller
1778 {
1779 return false;
1780 }
1781
1782 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1783 if (!hibcfg.m_bJumpAllowed)
1784 return false;
1785
1786 if (!DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_ERECT) || !DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_RAISEDERECT))
1787 return false;
1788
1789 HumanCommandMove hcm = GetCommand_Move();
1790 if (hcm)
1791 {
1792 if (hcm.IsChangingStance())
1793 return false;
1794 }
1795
1796 HumanCommandSwim hcs = GetCommand_Swim();
1797 if (hcs)
1798 {
1799 return false;
1800 }
1801
1802 return true;
1803 }
void DayZPlayerUtils()
cannot be instantiated
Определения DayZPlayerUtils.c:465
bool IsFBSymptomPlaying()
Определения DayZPlayerImplement.c:486
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:3861
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:673
void HumanCommandMove()
Определения human.c:514

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