diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index 204bde19..d1061907 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -435,7 +435,7 @@ static void autoJump() return; if (getNearestPlayerDistance().second <= *jump_distance) - current_user_cmd->buttons |= IN_JUMP; + current_user_cmd->buttons |= IN_JUMP | IN_DUCK; } enum slots diff --git a/src/navparser.cpp b/src/navparser.cpp index 177f61b6..d193b9a7 100644 --- a/src/navparser.cpp +++ b/src/navparser.cpp @@ -607,7 +607,7 @@ static void cm() } // Detect when jumping is necessary if ((!(g_pLocalPlayer->holding_sniper_rifle && g_pLocalPlayer->bZoomed) && crumb->z - g_pLocalPlayer->v_Origin.z > 18 && last_jump.test_and_set(200)) || (last_jump.test_and_set(200) && inactivity.check(3000))) - current_user_cmd->buttons |= IN_JUMP; + current_user_cmd->buttons |= IN_JUMP | IN_DUCK; // If inactive for too long if (inactivity.check(*stuck_time)) {