check health

This commit is contained in:
Mylloon 2023-03-30 15:04:53 +02:00
parent bdbecc758c
commit b2070dbff2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -192,6 +192,10 @@ class Cheat(Hack):
if mem.read_uint(entity + offset["m_iTeamNum"]) == local_team:
continue
# Check if ennemy is alive
if not mem.read_uint(entity + offset["m_iHealth"]):
continue
# Space between values
i = mem.read_int(
entity + offset["m_iGlowIndex"]) * offset["glow_obj_size"]