This repository has been archived on 2023-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
csh/cheats/noflash.py

28 lines
689 B
Python
Raw Normal View History

2023-03-31 18:52:22 +02:00
from hack import Hack, sleep
class Noflash(Hack):
def __init__(self) -> None:
super().__init__()
2023-03-31 21:58:07 +02:00
self.__brightness = 30.
2023-03-31 18:52:22 +02:00
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():
2023-03-31 21:58:07 +02:00
mem.write_float(local_player + offset["m_flFlashMaxAlpha"], self.__brightness)
2023-03-31 18:52:22 +02:00
2023-03-31 19:36:49 +02:00
# Value only overrided on first flash or when server fullupdate
sleep(10)
2023-03-31 18:52:22 +02:00
self.hack_loop(cheat)