feat: implement various player hacks and refactor main loop for modularity
Some checks failed
Python Type Check and Lint / ci (push) Failing after 1s

This commit is contained in:
암냥 2026-05-30 18:45:42 +09:00
commit 1730b73d1f
9 changed files with 141 additions and 85 deletions

16
modules/mtp57.py Normal file
View file

@ -0,0 +1,16 @@
import pyMeow as pm
class MTP57Hack:
# 008438F0 is MTP-57 Ammo -> offset 0x140 from local_player (0x8437B0)
# 008438CC is MTP-57 Mag -> offset 0x11C from local_player (0x8437B0)
offset_ammo = 0x140
offset_mag = 0x11C
@classmethod
def apply(cls, proc, local_player_addr, ammo_value=999, mag_value=99):
"""local_player의 MTP-57 총알 및 탄창 개수를 고정시킵니다."""
try:
pm.w_int(proc, local_player_addr + cls.offset_ammo, ammo_value)
pm.w_int(proc, local_player_addr + cls.offset_mag, mag_value)
except Exception as e:
pass