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

◆ CanJump()

bool DayZPlayer::CanJump ( )
inlineprotected

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

1744 {
1745 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState())
1746 return false;
1747
1748 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1749 return false;
1750
1751 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised jump on cotroller
1752 {
1753 return false;
1754 }
1755
1756 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1757 if (!hibcfg.m_bJumpAllowed)
1758 return false;
1759
1760 if (!DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_ERECT) || !DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_RAISEDERECT))
1761 return false;
1762
1763 HumanCommandMove hcm = GetCommand_Move();
1764 if (hcm)
1765 {
1766 if (hcm.IsChangingStance())
1767 return false;
1768 }
1769
1770 HumanCommandSwim hcs = GetCommand_Swim();
1771 if (hcs)
1772 {
1773 return false;
1774 }
1775
1776 return true;
1777 }
void DayZPlayerUtils()
cannot be instantiated
Определения DayZPlayerUtils.c:465
bool IsFBSymptomPlaying()
Определения DayZPlayerImplement.c:504
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:3878
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.