ignore dormant

This commit is contained in:
Mylloon 2023-03-31 19:45:59 +02:00
parent 83e7e5ae32
commit 918e0e4774
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -39,6 +39,10 @@ class Trigger(Hack):
ennemy = mem.read_uint( ennemy = mem.read_uint(
client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"]) client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"])
# Ignore dormant
if mem.read_bool(ennemy + offset["m_bDormant"]):
return
# Check if ennemy is alive # Check if ennemy is alive
if mem.read_int(ennemy + offset["m_lifeState"]): if mem.read_int(ennemy + offset["m_lifeState"]):
return return