add britghness control

This commit is contained in:
Mylloon 2023-03-31 20:34:04 +02:00
parent 76a004e922
commit 071cc46afe
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 10 additions and 3 deletions

View file

@ -34,7 +34,7 @@ python .\main.py
- Aim bot
- Bhop
- Chams (ennemy different color)
- Chams (ennemy different color and more visible)
- Glow (wallhack)
- No-recoil
- No-flash

View file

@ -1,4 +1,5 @@
from hack import Hack
from struct import pack
class Chams(Hack):
@ -12,6 +13,7 @@ class Chams(Hack):
# Get module addresses
client = self.find_module("client")
engine = self.find_module("engine")
# Get local player
local_player = self.find_uint(client, offset["dwLocalPlayer"])
@ -47,7 +49,12 @@ class Chams(Hack):
entity + offset["m_clrRender"] + offset["render_R"], 255)
mem.write_uint(
entity + offset["m_clrRender"] + offset["render_G"], 255)
# mem.write_uint(
# entity + offset["m_clrRender"] + offset["render_B"], 0)
brightness = 5.
mem.write_int(
engine + offset["model_ambient_min"],
int.from_bytes(pack("f", brightness), byteorder='little') ^ (
engine + offset["model_ambient_min"] - 0x2C)
)
self.hack_loop(cheat)