From 7e326d129ed9e25f8b8f37fa37990f3d1d037527 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Wed, 24 Jul 2024 03:16:04 -0400 Subject: [PATCH] Fixed aimbot snapping to weird angles when first grabbing a target with low FoV. (#3416) --- src/backend/looped/weapons/aimbot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/looped/weapons/aimbot.cpp b/src/backend/looped/weapons/aimbot.cpp index 07106956..b09ac914 100644 --- a/src/backend/looped/weapons/aimbot.cpp +++ b/src/backend/looped/weapons/aimbot.cpp @@ -293,11 +293,12 @@ namespace big static void adjust_position_for_target_velocity(rage::fvector3& target_position) { const auto target_velocity = get_velocity(m_target); + const auto my_velocity = get_velocity(g_local_player); if (target_velocity == rage::fvector3{}) return; - target_position += (target_velocity - get_velocity(g_local_player)); + target_position += (target_velocity - my_velocity); } virtual void on_tick() override