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

◆ CanClimb()

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

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

1806 {
1807 if (IsFBSymptomPlaying() || IsRestrained() || IsUnconscious() || IsInFBEmoteState() || GetCommand_Action() || GetCommandModifier_Action())
1808 return false;
1809
1810 if (m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE || m_MovementState.m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
1811 return false;
1812
1813 if (IsRaised() && GetInputInterface().SyncedPress("UAGetOverControllerHelper")) //no raised climb on cotroller
1814 {
1815 return false;
1816 }
1817
1818 HumanItemBehaviorCfg hibcfg = GetItemAccessor().GetItemInHandsBehaviourCfg();
1819 if (!hibcfg.m_bJumpAllowed)
1820 return false;
1821
1822 if (climbRes)
1823 {
1824 EntityAI entity;
1825 if (Class.CastTo(entity,climbRes.m_GrabPointParent) && entity.IsHologram())
1826 return false;
1827 if (Class.CastTo(entity,climbRes.m_ClimbStandPointParent) && entity.IsHologram())
1828 return false;
1829 if (Class.CastTo(entity,climbRes.m_ClimbOverStandPointParent) && entity.IsHologram())
1830 return false;
1831 }
1832
1833 return true;
1834 }
class LogManager EntityAI
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
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.