move to constructor

This commit is contained in:
Mylloon 2023-03-31 20:33:53 +02:00
parent 42f6a41600
commit 76a004e922
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -6,6 +6,8 @@ class Norecoil(Hack):
def __init__(self) -> None:
super().__init__()
# Control variable
self.nr__old_punch = Vec()
def no_recoil(self) -> None:
# Aliases
@ -22,9 +24,6 @@ class Norecoil(Hack):
# Get client state
client_state = mem.read_uint(engine + offset["dwClientState"])
# Control variable
self.nr__old_punch = Vec()
def cheat():
# Check if player is shooting
if mem.read_int(local_player + offset["m_iShotsFired"]):