fix norecoil

This commit is contained in:
Mylloon 2023-03-30 16:18:10 +02:00
parent 64cbbe9b58
commit f9eb55e578
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

11
main.py
View file

@ -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)