From 3ccd79e0a00f4109c4355433f904b146f17f5f04 Mon Sep 17 00:00:00 2001 From: LightCat Date: Wed, 14 Nov 2018 11:31:15 +0100 Subject: [PATCH] Fix Heavy issues --- src/hacks/Aimbot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 0bbce3a6..705b6bc8 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -119,10 +119,12 @@ void CreateMove() if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFMinigun)) if (auto_spin_up && - CE_INT(g_pLocalPlayer->weapon(), netvar.m_iAmmo + 4) != 0 && + CE_INT(LOCAL_E, netvar.m_iAmmo + 4) != 0 && !zoomTime.check(1000)) current_user_cmd->buttons |= IN_ATTACK2; + if (LOCAL_W->m_iClassID() == CL_CLASS(CTFMinigun) && CE_INT(LOCAL_E, netvar.m_iAmmo + 4) == 0) + return; // We do this as we need to pass whether the aimkey allows aiming to both // the find target and aiming system. If we just call the func than toggle // aimkey would break so we save it to a var to use it twice