From 104b779f142b5bf95a199404784e3d59f1c2b357 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Mon, 2 Apr 2018 11:48:40 +0200 Subject: [PATCH] fix aa issue --- src/hacks/AntiAim.cpp | 2 +- src/hacks/LagExploit.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hacks/AntiAim.cpp b/src/hacks/AntiAim.cpp index 1b01cc9c..aae45a7d 100755 --- a/src/hacks/AntiAim.cpp +++ b/src/hacks/AntiAim.cpp @@ -463,7 +463,7 @@ void ProcessUserCmd(CUserCmd *cmd) angstate = !angstate; if (!LOCAL_E->m_bAlivePlayer) angstate = true; - if (g_pUserCmd->buttons & IN_ATTACK || g_pUserCmd->buttons & IN_ATTACK2) + if (lagexploit::ExploitActive() || g_pUserCmd->buttons & IN_ATTACK || g_pUserCmd->buttons & IN_ATTACK2) angstate = true; *bSendPackets = angstate; float &p = cmd->viewangles.x; diff --git a/src/hacks/LagExploit.cpp b/src/hacks/LagExploit.cpp index 96b36c86..430eb880 100755 --- a/src/hacks/LagExploit.cpp +++ b/src/hacks/LagExploit.cpp @@ -52,7 +52,7 @@ void AddExploitTicks(int ticks) { exticks = std::max(ticks, exticks); } - +bool active = false; bool ExploitActive() { if (toggle) @@ -65,6 +65,8 @@ bool ExploitActive() { return true; } + if (active) + return true; return false; } @@ -76,6 +78,7 @@ float servertime, nextattack; static int lastwep = 0; void CreateMove() { + active = false; if (CE_BAD(LOCAL_E)) return; if (!LOCAL_E->m_bAlivePlayer) @@ -445,6 +448,7 @@ void CreateMove() } if (!amount) return; + active = true; /*g_pUserCmd->command_number += amount; g_pUserCmd->hasbeenpredicted = true; *(int *) ((unsigned) g_IBaseClientState + offsets::lastoutgoingcommand()) +=