From 9904891162a6749d39110110c0812a64c241a7ea Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 21:22:47 +0100 Subject: Remove stucklaunch; add valuable-item ESP - Drop the stucklaunch feature, its settings, diagnostics and m_hGroundEntity resolution. - Add a Visuals feature that scans the client entity list for valuable pickups: health/medkits/chargers, ammo boxes/crates/grenades, batteries, HEV suit modules/chargers, supply crates and generic items. - Model-first classification with class fallbacks; category toggles, distance labels and a max-distance slider. - Draw colored marker/label tags through walls, independent of the hostile NPC ESP. - Persist [items] active/bind/health/ammo/armor/crates/distance/max_dist; Reset restores defaults; GUI card and CONTEXT updated. --- src/hl2h.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index d6729cb..8aeef7a 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -92,7 +92,6 @@ struct NetVars { int modelindex = -1; int absvelocity = -1; // client C_BaseEntity::m_vecAbsVelocity (prediction) int activeweapon = -1; // client m_hActiveWeapon handle - int groundentity = -1; // client m_hGroundEntity handle // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; } // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100. @@ -141,7 +140,7 @@ struct CUserCmd { enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5, IN_ATTACK2 = 1 << 11, IN_SPEED = 1 << 17 }; enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; -enum { MOVETYPE_WALK = 2, MOVETYPE_VPHYSICS = 6, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; +enum { MOVETYPE_WALK = 2, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; // --------------------------------------------------------------------------- // vector math @@ -173,7 +172,7 @@ enum FeatureId { FEAT_JUMPBUG = 6, FEAT_MELEE = 7, FEAT_SPREAD = 8, - FEAT_STUCKLAUNCH = 9, + FEAT_ITEM_ESP = 9, FEAT_COUNT = 10 }; enum EspOption { @@ -206,14 +205,16 @@ struct FeatureState { }; extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp, - g_aimbot, g_triggerbot, g_silentaim, g_stucklaunch; + g_aimbot, g_triggerbot, g_silentaim, g_item_esp; extern bool g_bhop_autostrafe; extern bool g_jumpbug_assist; extern bool g_spread_no_spread; -extern bool g_stucklaunch_use_spam; -extern bool g_stucklaunch_gravspam; -extern bool g_stucklaunch_autostrafe; -extern int g_stucklaunch_spam_ticks; +extern bool g_item_health; +extern bool g_item_ammo; +extern bool g_item_armor; +extern bool g_item_crates; +extern bool g_item_distance; +extern int g_item_max_dist; extern bool g_aim_bones[AIM_BONE_COUNT]; extern int g_aim_smooth; extern bool g_aim_vischeck; @@ -252,12 +253,6 @@ bool esp_option(int opt); bool bhop_autostrafe_enabled(); bool jumpbug_assist_enabled(); bool spread_no_spread_enabled(); -bool stucklaunch_use_spam_enabled(); -bool stucklaunch_gravspam_enabled(); -bool stucklaunch_autostrafe_enabled(); -int stucklaunch_spam_ticks(); -bool active_weapon_is_gravity_gun(void *local_ent); -bool entity_is_physics_prop(int idx); unsigned aimbot_bone_mask(); int aimbot_smooth_step(); bool aimbot_vischeck_enabled(); @@ -270,6 +265,7 @@ void *entitylist_get(int idx); int engine_get_local_player(); void draw_text_col(int x, int y, const char *s, int r, int g, int b); void esp_draw(); +void esp_draw_items(); bool world_to_screen(const Vector &w, float &sx, float &sy); void set_silent_restore(const QAngle &angles); bool is_visible(const Vector &eye, const Vector &point); -- cgit v1.2.3