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

◆ CanClimb()

bool DayZPlayer::CanClimb ( int climbType,
SHumanCommandClimbResult climbRes )
inlineprotected

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

1822 {
1823 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState() || GetCommand_Action() || GetCommandModifier_Action())
1824 return false;
1825
1826 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1827 return false;
1828
1829 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised climb on cotroller
1830 {
1831 return false;
1832 }
1833
1834 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1835 if (!hibcfg.m_bJumpAllowed)
1836 return false;
1837
1838 if (climbRes)
1839 {
1840 EntityAI entity;
1841 if (Class.CastTo(entity,climbRes.m_GrabPointParent) && entity.IsHologram())
1842 return false;
1843 if (Class.CastTo(entity,climbRes.m_ClimbStandPointParent) && entity.IsHologram())
1844 return false;
1845 if (Class.CastTo(entity,climbRes.m_ClimbOverStandPointParent) && entity.IsHologram())
1846 return false;
1847 }
1848
1849 return true;
1850 }
class LogManager EntityAI
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
bool m_bJumpAllowed
default false
Определения humanitems.c:39
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки Class::CastTo(), IsFBSymptomPlaying(), IsInFBEmoteState(), IsRaised(), IsRestrained(), HumanItemBehaviorCfg::m_bJumpAllowed и m_MovementState.