From 2948d762ef60bbb0d182d789802ef8b5141b6c72 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sun, 2 Jul 2017 10:17:19 +0300 Subject: [PATCH] fix target highlight --- src/hacks/Aimbot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index c56e83d3..46fa31aa 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -123,7 +123,7 @@ void CreateMove() { if (!enabled) return; // Check if player can aim - if (!ShouldAim()) return; + bool shouldAim = ShouldAim(); // Refresh projectile info int huntsman_ticks = 0; @@ -152,7 +152,7 @@ void CreateMove() { // Only allow aimbot to work with aimkey // We also preform a CanShoot check here per the old canshoot method - if (UpdateAimkey() && ShouldAimLeg()) { + if (shouldAim && UpdateAimkey() && ShouldAimLeg()) { // Check if player isnt using a huntsman if (g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFCompoundBow)) {