diff --git a/README.md b/README.md index b5461e3..045a90f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cheats/chams.py b/cheats/chams.py index 8d5552f..23615c9 100644 --- a/cheats/chams.py +++ b/cheats/chams.py @@ -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)