add no flash
This commit is contained in:
parent
02b2a91bf7
commit
9f7e91ef87
1 changed files with 21 additions and 0 deletions
21
main.py
21
main.py
|
@ -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
|
||||||
|
|
Reference in a new issue