remove prefix
This commit is contained in:
parent
d462071852
commit
71af72b6aa
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue