use life state

This commit is contained in:
Mylloon 2023-03-31 03:38:40 +02:00
parent cc0a45ec95
commit 5bd02e8afa
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -79,7 +79,7 @@ class Cheat(Hack):
continue
# Check if ennemy is alive
if not mem.read_uint(entity + offset["m_iHealth"]):
if mem.read_int(entity + offset["m_lifeState"]):
continue
mem.write_bool(entity + offset["m_bSpotted"], True)
@ -123,7 +123,7 @@ class Cheat(Hack):
continue
# Check if ennemy is alive
if not mem.read_uint(entity + offset["m_iHealth"]):
if mem.read_int(entity + offset["m_lifeState"]):
continue
# Space between values
@ -181,7 +181,7 @@ class Cheat(Hack):
client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"])
# Check if ennemy is alive
if not mem.read_int(ennemy + offset["m_iHealth"]):
if mem.read_int(entity + offset["m_lifeState"]):
return
# Ignore allies
@ -305,7 +305,7 @@ class Cheat(Hack):
continue
# Check if ennemy is alive
if not mem.read_uint(entity + offset["m_iHealth"]):
if mem.read_int(entity + offset["m_lifeState"]):
continue
# Space between values