Can't change to bool return.
Early exit if the player is being heavy damaged so the stagger animation can't be skipped
21 {
24
26 if (
m_Player.IsInFullbodyDamageAnimation())
27 return;
28
30
32 hcls.m_fFwMaxDistance = 2.5;
33 else
34 hcls.m_fFwMaxDistance = 1.2;
35
37 hcls.m_fBackwardsCheckDist = 0.35;
38 else
39 hcls.m_fBackwardsCheckDist = 0;
40
41 SHumanCommandClimbResult climbRes = new SHumanCommandClimbResult();
42
44 if (climbRes.m_bIsClimb || climbRes.m_bIsClimbOver)
45 {
47 if (!
m_Player.CanClimb(climbType, climbRes))
48 return;
49
51 {
52 if (climbType == 1)
54 else if (climbType == 2)
56
57 return;
58 }
59 }
60
62 {
65 }
66 }
DayZPlayerImplement m_Player
int GetClimbType(float pHeight)
bool Climb(SHumanCommandClimbResult pClimbRes)
DayZPlayerConstants
defined in C++
class SHumanCommandSwimSettings SHumanCommandClimbSettings()