From 8111cde47f72eface55633b179ea5f01ba713a8c Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sun, 30 Apr 2017 19:30:49 +0300 Subject: [PATCH] fix zoomed only? --- src/hacks/Aimbot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 26963e17..ff1e5ba6 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -468,6 +468,12 @@ bool ShouldAim(CUserCmd* cmd) { if (slowaim) return false; } } + if (zoomed_only) { + if (g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifle || + g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifleDecap) { + return false; + } + } if (only_can_shoot) { // Miniguns should shoot and aim continiously. TODO smg if (g_pLocalPlayer->weapon()->m_iClassID != g_pClassID->CTFMinigun) {