add and use custom offset
This commit is contained in:
parent
52d3dda44a
commit
1d775c971c
1 changed files with 5 additions and 4 deletions
9
main.py
9
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
|
||||
|
|
Reference in a new issue