use offset dict
This commit is contained in:
parent
aa26e42d4c
commit
02b2a91bf7
1 changed files with 6 additions and 3 deletions
9
main.py
9
main.py
|
@ -29,7 +29,9 @@ class Hack():
|
||||||
"glow_R": 0x8,
|
"glow_R": 0x8,
|
||||||
"glow_G": 0xC,
|
"glow_G": 0xC,
|
||||||
"glow_B": 0x10,
|
"glow_B": 0x10,
|
||||||
"glow_A": 0x14
|
"glow_A": 0x14,
|
||||||
|
"GOM_wall": 0x27,
|
||||||
|
"GOM_visible": 0x28
|
||||||
}
|
}
|
||||||
|
|
||||||
def _find_process(self, verbose: bool = False) -> Pymem:
|
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.)
|
mem.write_float(glow_obj_manager + i + offset["glow_A"], 1.)
|
||||||
|
|
||||||
# Render when not visible
|
# 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
|
# 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)
|
self.hack_loop(cheat)
|
||||||
|
|
||||||
|
|
Reference in a new issue