Load cheats without specifying the list

This commit is contained in:
Mylloon 2023-04-04 19:26:10 +02:00
parent a4f6e11d67
commit 2409f898fa
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,18 +1,12 @@
from cheats.aimbot import *
from cheats.bhop import *
from cheats.chams import *
from cheats.fov import *
from cheats.glow import *
from cheats.noflash import *
from cheats.norecoil import *
from cheats.radarhack import *
from cheats.trigger import *
from glob import glob
# Import all cheats
backslash = "\\"
for file in glob("cheats/*.py"):
exec(f"from {file.replace(backslash, '.')[:-3]} import *")
class Cheat(Bhop, Radarhack, Glow, Trigger,
Norecoil, Noflash, Chams, Aimbot,
Fov,
):
class Cheat(*[child for child in Hack.__subclasses__()]): # type: ignore
"""All cheats are loaded in this class"""
def __init__(self, **kwargs) -> None: