change brigthness instead of duration

This commit is contained in:
Mylloon 2023-03-31 19:36:49 +02:00
parent b4ba7db1d0
commit a1411c14ac
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -17,10 +17,9 @@ class Noflash(Hack):
local_player = self.find_uint(client, offset["dwLocalPlayer"]) local_player = self.find_uint(client, offset["dwLocalPlayer"])
def cheat(): def cheat():
if (mem.read_int(local_player + offset["m_flFlashDuration"])): mem.write_float(local_player + offset["m_flFlashMaxAlpha"], 0.)
mem.write_int(local_player + offset["m_flFlashDuration"], 0)
# Less chance to get flashed again # Value only overrided on first flash or when server fullupdate
sleep(1) sleep(10)
self.hack_loop(cheat) self.hack_loop(cheat)