From b4ba7db1d0b437e293fcb85c629b9c9ddbb6461e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 31 Mar 2023 19:22:19 +0200 Subject: [PATCH] use lifestate --- cheats/bhop.py | 2 +- cheats/trigger.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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