add britghness control
This commit is contained in:
parent
76a004e922
commit
071cc46afe
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in a new issue