remove prefix

This commit is contained in:
Mylloon 2023-04-02 20:12:06 +02:00
parent d462071852
commit 71af72b6aa
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -7,7 +7,7 @@ class Norecoil(Hack):
super().__init__(**kwargs)
# Control variable
self.nr__old_punch = Vec()
self.__old_punch = Vec()
def no_recoil(self) -> None:
# Aliases
@ -46,7 +46,7 @@ class Norecoil(Hack):
# New angles
new_angle = angle_normalizer(view_angles.plus(
self.nr__old_punch).minus(aim_punch))
self.__old_punch).minus(aim_punch))
# Cancel recoil by moving the player view angle
mem.write_float(
@ -55,10 +55,10 @@ class Norecoil(Hack):
client_state + offset["dwClientState_ViewAngles"] + offset["float"], new_angle.y)
# Save the current spray value for the next bullet
self.nr__old_punch = aim_punch
self.__old_punch = aim_punch
else:
# Not spraying
self.nr__old_punch = Vec()
self.__old_punch = Vec()
self.hack_loop(cheat)