change brigthness instead of duration
This commit is contained in:
parent
b4ba7db1d0
commit
a1411c14ac
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue