From 714262bcf759a238daf906de16e7b204712a104f Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 14:28:21 +0100 Subject: Add usable item filter, projectile ESP and gravity-gun melee - Items: "Only if usable" hides health tags at full health and armor at full suit. Health ceiling is the server player's m_iMaxHealth; armor uses the server m_ArmorValue against HL2's 100 cap. Fails open when unreadable. - Projectiles: new Visuals feature/card for thrown grenades, RPG rockets, helicopter bombs and AR2 balls. Fuse from server m_flDetonateTime vs engine time; radius from m_DmgRadius with per-type fallback; optional 24-segment radius ring and FRAG timer label. - Melee: the killbot now handles the gravity gun as well; only VULNERABLE targets, 1200-unit range, primary attack to launch the held object, and no aim-punch compensation because the launch uses EyeVectors. - Server/netvars: m_ArmorValue, m_flDetonateTime, m_DmgRadius. --- src/hl2h.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/hl2h.cpp') diff --git a/src/hl2h.cpp b/src/hl2h.cpp index ca7ee85..703a582 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp @@ -909,15 +909,18 @@ static void do_move(int seq, float frametime) { note_modified(cmd, flags, vel); bool melee = feature_active(FEAT_MELEE) && melee_weapon_active(ent); + bool gravity = feature_active(FEAT_MELEE) && gravity_gun_active(ent); + bool melee_mode = melee || gravity; - if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || melee) + if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || + melee_mode) aimbot_reset_lock(); if (!feature_active(FEAT_SILENTAIM) || !feature_has_bind(FEAT_SILENTAIM) || - melee) + melee_mode) silentaim_reset_lock(); - if (melee) { - if (melee_aimbot_apply(cmd)) + if (melee_mode) { + if (melee_aimbot_apply(cmd, gravity && !melee)) note_modified(cmd, flags, vel); } else { if (feature_active(FEAT_AIMBOT)) { -- cgit v1.2.3