feat: implement various player hacks and refactor main loop for modularity
Some checks failed
Python Type Check and Lint / ci (push) Failing after 1s
Some checks failed
Python Type Check and Lint / ci (push) Failing after 1s
This commit is contained in:
parent
1b3bc8a73e
commit
1730b73d1f
9 changed files with 141 additions and 85 deletions
|
|
@ -7,7 +7,7 @@ class AimbotOffsets:
|
|||
yaw = 0x34 # camera_x
|
||||
pitch = 0x38 # camera_y
|
||||
|
||||
def do_aimbot(proc, entities, local_player_addr, my_team, left_shift_pressed):
|
||||
def AimBot(proc, entities, local_player_addr, my_team, left_shift_pressed):
|
||||
if not left_shift_pressed or not entities:
|
||||
return
|
||||
|
||||
|
|
|
|||
12
modules/armor.py
Normal file
12
modules/armor.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import pyMeow as pm
|
||||
|
||||
class ArmorHack:
|
||||
offset = 0xF0
|
||||
|
||||
@classmethod
|
||||
def apply(cls, proc, local_player_addr, value=100):
|
||||
"""local_player의 Armor 값을 100으로 고정시킵니다."""
|
||||
try:
|
||||
pm.w_int(proc, local_player_addr + cls.offset, value)
|
||||
except Exception as e:
|
||||
pass
|
||||
|
|
@ -97,3 +97,18 @@ class Entity:
|
|||
segments=0,
|
||||
color=self.color,
|
||||
)
|
||||
|
||||
def process_entities(proc, ent_buffer, v_matrix, enable_esp):
|
||||
valid_entities = []
|
||||
for addr in ent_buffer:
|
||||
if addr == 0: continue
|
||||
try:
|
||||
ent = Entity(proc, addr)
|
||||
valid_entities.append(ent)
|
||||
if enable_esp and ent.wts(v_matrix):
|
||||
ent.draw_box()
|
||||
ent.draw_name()
|
||||
ent.draw_health()
|
||||
except:
|
||||
continue
|
||||
return valid_entities
|
||||
|
|
|
|||
12
modules/grenade.py
Normal file
12
modules/grenade.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import pyMeow as pm
|
||||
|
||||
class GrenadeHack:
|
||||
offset = 0x144
|
||||
|
||||
@classmethod
|
||||
def apply(cls, proc, local_player_addr, value=9999999):
|
||||
"""local_player의 Grenade 값을 9999999로 고정시킵니다."""
|
||||
try:
|
||||
pm.w_int(proc, local_player_addr + cls.offset, value)
|
||||
except Exception as e:
|
||||
pass
|
||||
12
modules/health.py
Normal file
12
modules/health.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import pyMeow as pm
|
||||
|
||||
class HealthHack:
|
||||
offset = 0xEC
|
||||
|
||||
@classmethod
|
||||
def apply(cls, proc, local_player_addr, value=9999):
|
||||
"""local_player의 Health 값을 9999로 고정시킵니다."""
|
||||
try:
|
||||
pm.w_int(proc, local_player_addr + cls.offset, value)
|
||||
except Exception as e:
|
||||
pass
|
||||
16
modules/mk77.py
Normal file
16
modules/mk77.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import pyMeow as pm
|
||||
|
||||
class MK77Hack:
|
||||
# 008438DC is MK-77 Ammo -> offset 0x12C from local_player (0x8437B0)
|
||||
# 008438B8 is MK-77 Mag -> offset 0x108 from local_player (0x8437B0)
|
||||
offset_ammo = 0x12C
|
||||
offset_mag = 0x108
|
||||
|
||||
@classmethod
|
||||
def apply(cls, proc, local_player_addr, ammo_value=999, mag_value=99):
|
||||
"""local_player의 MK-77 총알 및 탄창 개수를 고정시킵니다."""
|
||||
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
|
||||
16
modules/mtp57.py
Normal file
16
modules/mtp57.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue