27 lines
707 B
Python
27 lines
707 B
Python
from hack import Hack, sleep
|
|
|
|
|
|
class Noflash(Hack):
|
|
def __init__(self, **kwargs) -> None:
|
|
super().__init__(**kwargs)
|
|
|
|
self.__brightness = 30.
|
|
|
|
def noflash(self) -> None:
|
|
# Aliases
|
|
mem = self.pm
|
|
offset = self.offsets
|
|
|
|
# Get module address
|
|
client = self.find_module("client")
|
|
|
|
# Get local player
|
|
local_player = self.find_uint(client, offset["dwLocalPlayer"])
|
|
|
|
def cheat():
|
|
mem.write_float(local_player + offset["m_flFlashMaxAlpha"], self.__brightness)
|
|
|
|
# Value only overrided on first flash or when server fullupdate
|
|
sleep(10)
|
|
|
|
self.hack_loop(cheat)
|