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

◆ CanJump()

bool DayZPlayer::CanJump ( )
inlineprotected

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

1681 {
1682 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState())
1683 return false;
1684
1685 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1686 return false;
1687
1688 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised jump on cotroller
1689 {
1690 return false;
1691 }
1692
1693 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1694 if (!hibcfg.m_bJumpAllowed)
1695 return false;
1696
1697 if (!DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_ERECT) || !DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_RAISEDERECT))
1698 return false;
1699
1700 HumanCommandMove hcm = GetCommand_Move();
1701 if (hcm)
1702 {
1703 if (hcm.IsChangingStance())
1704 return false;
1705 }
1706
1707 HumanCommandSwim hcs = GetCommand_Swim();
1708 if (hcs)
1709 {
1710 return false;
1711 }
1712
1713 return true;
1714 }
void DayZPlayerUtils()
cannot be instantiated
Определения DayZPlayerUtils.c:465
bool IsFBSymptomPlaying()
Определения DayZPlayerImplement.c:496
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:116
bool IsRestrained()
bool IsRaised()
Определения DayZPlayerImplement.c:3809
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.