add and use custom offset

This commit is contained in:
Mylloon 2023-03-30 14:26:15 +02:00
parent 52d3dda44a
commit 1d775c971c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -20,7 +20,10 @@ class Hack():
hazedumper_data = get(
"https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.min.json")
serial_data = loads(hazedumper_data.text)
return serial_data["signatures"] | serial_data["netvars"]
return serial_data["signatures"] | serial_data["netvars"] | {
"entity_size": 0x10
}
def _find_process(self, verbose: bool = False) -> Pymem:
"""Find game process"""
@ -126,12 +129,10 @@ class Cheat(Hack):
# Reduce CPU usage
sleep(self.wait_time)
size_entity_object = 0x10
# Show ennemies
for i in range(1, 64): # 0 is world
entity = mem.read_uint(
client + offset["dwEntityList"] + i * size_entity_object)
client + offset["dwEntityList"] + i * offset["entity_size"])
if not entity:
continue