diff --git a/main.py b/main.py index 5c5f45b..29d89c4 100644 --- a/main.py +++ b/main.py @@ -359,6 +359,27 @@ class Cheat(Hack): self.hack_loop(cheat) + def noflash(self) -> None: + # Aliases + mem = self.pm + offset = self.offsets + + # Get module addresses + client = self.find_module("client") + + # Get local player + local_player = self.find_uint(client, offset["dwLocalPlayer"]) + + def cheat(): + if (mem.read_int(local_player + offset["m_flFlashDuration"])): + print("rtatio") + mem.write_int(local_player + offset["m_flFlashDuration"], 0) + + # Less chance to get flash again + sleep(1) + + self.hack_loop(cheat) + if __name__ == "__main__": # Cheat