From 7fb57cd54cd09f970aef24d9e44ff20da8150be6 Mon Sep 17 00:00:00 2001 From: Retarded-Skid Date: Thu, 13 Jul 2017 18:26:03 -0400 Subject: [PATCH] Fixed removeconding at full health from last update --- src/hacks/LagExploit.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hacks/LagExploit.cpp b/src/hacks/LagExploit.cpp index d0ecdc69..7bec64db 100644 --- a/src/hacks/LagExploit.cpp +++ b/src/hacks/LagExploit.cpp @@ -157,13 +157,15 @@ void CreateMove() { if (e->m_iClassID != CL_CLASS(CBaseAnimating)) continue; if (e->m_flDistance > 54.0f) continue; // Lag for health - if (LOCAL_E->m_iHealth <= LOCAL_E->m_iMaxHealth) { + if (LOCAL_E->m_iHealth < LOCAL_E->m_iMaxHealth) { if (e->m_ItemType == ITEM_HEALTH_SMALL || e->m_ItemType == ITEM_HEALTH_MEDIUM || e->m_ItemType == ITEM_HEALTH_LARGE) amount = 900; } // Lag for ammo / metal - if (LOCAL_E->m_iAmmo <= LOCAL_E->m_iMaxAmmo) { + // TODO: Figure out way to properly check for not having max-ammo + // + // if (LOCAL_E->m_iAmmo < LOCAL_E->m_iMaxAmmo) { if (e->m_ItemType == ITEM_AMMO_SMALL || e->m_ItemType == ITEM_AMMO_MEDIUM || e->m_ItemType == ITEM_AMMO_LARGE) amount = 900; - } + // Not working for some reason? /*ICollideable* c = RAW_ENT(e)->GetCollideable();