diff --git a/cheats/bhop.py b/cheats/bhop.py index 1d69819..ee003ce 100644 --- a/cheats/bhop.py +++ b/cheats/bhop.py @@ -24,7 +24,7 @@ class Bhop(Hack): return # Check if player is alive - if not mem.read_uint(local_player + offset["m_iHealth"]): + if mem.read_uint(local_player + offset["m_lifeState"]): return # Check if player on ground diff --git a/cheats/trigger.py b/cheats/trigger.py index bfc6360..12938f8 100644 --- a/cheats/trigger.py +++ b/cheats/trigger.py @@ -24,7 +24,7 @@ class Trigger(Hack): return # Check if player is alive - if not mem.read_int(local_player + offset["m_iHealth"]): + if mem.read_int(local_player + offset["m_lifeState"]): return # Get crosshair info about what we aiming at