fix norecoil
This commit is contained in:
parent
64cbbe9b58
commit
f9eb55e578
1 changed files with 3 additions and 8 deletions
11
main.py
11
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)
|
||||
|
||||
|
|
Reference in a new issue