From a794b49c64fffe9102c3e09aff785a61a3d9a377 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Thu, 13 May 2021 10:29:44 +0200 Subject: [PATCH] stop being an idiot and actually fix the snapping --- src/hacks/Aimbot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index acbf35e2..3517220f 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -556,18 +556,18 @@ CachedEntity *RetrieveBestTarget(bool aimkey_state) hacks::tf2::backtrack::RestoreEntity(target_last->m_IDX); } } - // No last_target found, reset the timer. - hacks::shared::aimbot::last_target_ignore_timer = 0; } // Check if previous target is still good - else if (IsTargetStateGood(target_last)) + else if (!shouldbacktrack_cache && IsTargetStateGood(target_last)) { // If it is then return it again return target_last; } } } + // No last_target found, reset the timer. + hacks::shared::aimbot::last_target_ignore_timer = 0; float target_highest_score, scr = 0.0f; CachedEntity *ent;