move to constructor
This commit is contained in:
parent
42f6a41600
commit
76a004e922
1 changed files with 2 additions and 3 deletions
|
@ -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"]):
|
||||
|
|
Reference in a new issue