use offset dict

This commit is contained in:
Mylloon 2023-03-30 22:18:36 +02:00
parent aa26e42d4c
commit 02b2a91bf7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -29,7 +29,9 @@ class Hack():
"glow_R": 0x8,
"glow_G": 0xC,
"glow_B": 0x10,
"glow_A": 0x14
"glow_A": 0x14,
"GOM_wall": 0x27,
"GOM_visible": 0x28
}
def _find_process(self, verbose: bool = False) -> Pymem:
@ -211,10 +213,11 @@ class Cheat(Hack):
mem.write_float(glow_obj_manager + i + offset["glow_A"], 1.)
# Render when not visible
mem.write_bool(glow_obj_manager + i + 0x27, True)
mem.write_bool(glow_obj_manager + i + offset["GOM_wall"], True)
# Render when visible
mem.write_bool(glow_obj_manager + i + 0x28, True)
mem.write_bool(glow_obj_manager + i +
offset["GOM_visible"], True)
self.hack_loop(cheat)