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_x = 0.
|
||||||
self.nr__old_punch_y = 0.
|
self.nr__old_punch_y = 0.
|
||||||
|
|
||||||
# TMP NOTICE
|
|
||||||
print("This one isn't working.")
|
|
||||||
exit(2)
|
|
||||||
|
|
||||||
def cheat():
|
def cheat():
|
||||||
# TODO: Reduce read/write call
|
# TODO: Reduce read/write call
|
||||||
|
|
||||||
|
@ -308,9 +304,9 @@ class Cheat(Hack):
|
||||||
|
|
||||||
# How much the view is modified
|
# How much the view is modified
|
||||||
aim_punch_x = mem.read_float(
|
aim_punch_x = mem.read_float(
|
||||||
client_state + offset["m_aimPunchAngle"]) * server_mult
|
local_player + offset["m_aimPunchAngle"]) * server_mult
|
||||||
aim_punch_y = mem.read_int(
|
aim_punch_y = mem.read_float(
|
||||||
client_state + offset["m_aimPunchAngle"] + float_offset) * server_mult
|
local_player + offset["m_aimPunchAngle"] + float_offset) * server_mult
|
||||||
|
|
||||||
# New angles
|
# New angles
|
||||||
new_angle_x = view_angles_x + self.nr__old_punch_x - aim_punch_x
|
new_angle_x = view_angles_x + self.nr__old_punch_x - aim_punch_x
|
||||||
|
@ -341,7 +337,6 @@ class Cheat(Hack):
|
||||||
# Not spraying
|
# Not spraying
|
||||||
self.nr__old_punch_x = 0.
|
self.nr__old_punch_x = 0.
|
||||||
self.nr__old_punch_y = 0.
|
self.nr__old_punch_y = 0.
|
||||||
pass
|
|
||||||
|
|
||||||
self.hack_loop(cheat)
|
self.hack_loop(cheat)
|
||||||
|
|
||||||
|
|
Reference in a new issue