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