diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index 21d67ccf..d4bc9d04 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -564,7 +564,7 @@ void oobcm() current_user_cmd->viewangles.x = to_path.pitch; current_user_cmd->viewangles.y = to_path.yaw; if (LOCAL_E->m_vecOrigin().AsVector2D().DistTo(topath.AsVector2D()) <= 0.01f) - logging::Info("Arrived at the destination!"); + logging::Info("Arrived at the destination! offset: %f %f", fabsf(LOCAL_E->m_vecOrigin().x - topath.x), fabsf(LOCAL_E->m_vecOrigin().y - topath.y)); else logging::Info("Timed out trying to get to spot"); } diff --git a/src/helpers.cpp b/src/helpers.cpp index 1d0db543..c1a4ce48 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -442,7 +442,7 @@ std::pair ComputeMovePrecise(const Vector &a, const Vector &b) float yaw = DEG2RAD(ang.y - current_user_cmd->viewangles.y); if (g_pLocalPlayer->bUseSilentAngles) yaw = DEG2RAD(ang.y - g_pLocalPlayer->v_OrigViewangles.y); - return { cos(yaw) * MIN(MAX(diff.Length2D(), 2.0f), 450.0f), -sin(yaw) * MIN(MAX(diff.Length2D(), 2.0f), 450.0f) }; + return { cos(yaw) * MIN(MAX(diff.Length2D(), 1.05f), 450.0f), -sin(yaw) * MIN(MAX(diff.Length2D(), 1.05f), 450.0f) }; } std::pair ComputeMove(const Vector &a, const Vector &b)