private bool bot_Climb(SHumanCommandClimbResult bot_pClimbRes) { int bot_climbType = GetClimbTypeBot(bot_pClimbRes.m_fClimbHeight); if (bot_climbType != -1) { m_Soldier.StartCommand_Climb(bot_pClimbRes, bot_climbType); } return(bot_climbType != -1); }
void bot_JumpOrClimb() { SHumanCommandClimbSettings b_hcls = m_Soldier.GetDayZPlayerType().CommandClimbSettingsW(); if (m_Soldier.m_MovementState.m_iMovement != DayZPlayerConstants.MOVEMENTIDX_IDLE) { b_hcls.m_fFwMaxDistance = 2.5; } else { b_hcls.m_fFwMaxDistance = 1.2; } SHumanCommandClimbResult bot_climbRes = new SHumanCommandClimbResult(); HumanCommandClimb.DoClimbTest(m_Soldier, bot_climbRes, 0); if (bot_climbRes.m_bIsClimb || bot_climbRes.m_bIsClimbOver) { int bot_climbType = GetClimbTypeBot(bot_climbRes.m_fClimbHeight); if (!m_Soldier.bot_CanClimb(bot_climbType, bot_climbRes)) { return; } if (bot_Climb(bot_climbRes)) { return; } } if (!m_Soldier.bot_CanJump()) { return; } bot_Jump(); }