Load cheats without specifying the list
This commit is contained in:
parent
a4f6e11d67
commit
2409f898fa
1 changed files with 7 additions and 13 deletions
20
cheat.py
20
cheat.py
|
@ -1,18 +1,12 @@
|
||||||
from cheats.aimbot import *
|
from glob import glob
|
||||||
from cheats.bhop import *
|
|
||||||
from cheats.chams import *
|
# Import all cheats
|
||||||
from cheats.fov import *
|
backslash = "\\"
|
||||||
from cheats.glow import *
|
for file in glob("cheats/*.py"):
|
||||||
from cheats.noflash import *
|
exec(f"from {file.replace(backslash, '.')[:-3]} import *")
|
||||||
from cheats.norecoil import *
|
|
||||||
from cheats.radarhack import *
|
|
||||||
from cheats.trigger import *
|
|
||||||
|
|
||||||
|
|
||||||
class Cheat(Bhop, Radarhack, Glow, Trigger,
|
class Cheat(*[child for child in Hack.__subclasses__()]): # type: ignore
|
||||||
Norecoil, Noflash, Chams, Aimbot,
|
|
||||||
Fov,
|
|
||||||
):
|
|
||||||
"""All cheats are loaded in this class"""
|
"""All cheats are loaded in this class"""
|
||||||
|
|
||||||
def __init__(self, **kwargs) -> None:
|
def __init__(self, **kwargs) -> None:
|
||||||
|
|
Reference in a new issue