From f9eb55e578b2cb5e7595fc9fca2451c9ab3c1149 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 30 Mar 2023 16:18:10 +0200 Subject: [PATCH] fix norecoil --- main.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index de6979c..c1f84c2 100644 --- a/main.py +++ b/main.py @@ -286,10 +286,6 @@ class Cheat(Hack): self.nr__old_punch_x = 0. self.nr__old_punch_y = 0. - # TMP NOTICE - print("This one isn't working.") - exit(2) - def cheat(): # TODO: Reduce read/write call @@ -308,9 +304,9 @@ class Cheat(Hack): # How much the view is modified aim_punch_x = mem.read_float( - client_state + offset["m_aimPunchAngle"]) * server_mult - aim_punch_y = mem.read_int( - client_state + offset["m_aimPunchAngle"] + float_offset) * server_mult + local_player + offset["m_aimPunchAngle"]) * server_mult + aim_punch_y = mem.read_float( + local_player + offset["m_aimPunchAngle"] + float_offset) * server_mult # New angles new_angle_x = view_angles_x + self.nr__old_punch_x - aim_punch_x @@ -341,7 +337,6 @@ class Cheat(Hack): # Not spraying self.nr__old_punch_x = 0. self.nr__old_punch_y = 0. - pass self.hack_loop(cheat)