add no flash

This commit is contained in:
Mylloon 2023-03-30 23:01:18 +02:00
parent 02b2a91bf7
commit 9f7e91ef87
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

21
main.py
View file

@ -359,6 +359,27 @@ class Cheat(Hack):
self.hack_loop(cheat) 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__": if __name__ == "__main__":
# Cheat # Cheat