From 1d775c971c7a58612088e30d55c9b6a5d44a5f71 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 30 Mar 2023 14:26:15 +0200 Subject: [PATCH] add and use custom offset --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index bd4c68e..3da45d8 100644 --- a/main.py +++ b/main.py @@ -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