From 918e0e47740a5e27df30d53060ae7a4bda3d144b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 31 Mar 2023 19:45:59 +0200 Subject: [PATCH] ignore dormant --- cheats/trigger.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cheats/trigger.py b/cheats/trigger.py index 12938f8..ef61feb 100644 --- a/cheats/trigger.py +++ b/cheats/trigger.py @@ -39,6 +39,10 @@ class Trigger(Hack): ennemy = mem.read_uint( 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 if mem.read_int(ennemy + offset["m_lifeState"]): return