summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 20:15:51 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 20:15:51 +0100
commitba500fef7fbf94725f18541b0e23a45591379dba (patch)
treef1eec8ad34e532fb7bcb9172083c78d96bcdca4f /src/hl2h.h
parentOverlay: keep GUI and toasts drawing if the ESP font fails (diff)
downloadhl2h-ba500fef7fbf94725f18541b0e23a45591379dba.tar.gz
hl2h-ba500fef7fbf94725f18541b0e23a45591379dba.zip
Fix tooltip truncation; add Stucklaunch assist
Tooltips: text_in() shifted the x position to fit the full string before truncating, which drew the tooltip text outside its box. Truncate to the available width first, then clamp inside the clip. Stucklaunch (Movement): - opt-in feature (Active off by default) with its own bind; - holds jump, alternates +use every 2 ticks to regrab a physics prop, optionally +attack while the gravity gun is active, and air-strafes; - engagement uses m_hGroundEntity (client netvar) latched for ~0.5 s so the prop stays active while airborne; falls back to running whenever active if the netvar is unavailable, with a startup warning to bind it; - does not spawn or place props; the player supplies the prop and initial speed. Config gets [stucklaunch] active/bind/use_spam/gravspam/autostrafe; Reset restores those defaults. CONTEXT documents the assist and its limits.
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index e390aa0..aabe8e9 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -92,6 +92,7 @@ struct NetVars {
92 int modelindex = -1; 92 int modelindex = -1;
93 int absvelocity = -1; // client C_BaseEntity::m_vecAbsVelocity (prediction) 93 int absvelocity = -1; // client C_BaseEntity::m_vecAbsVelocity (prediction)
94 int activeweapon = -1; // client m_hActiveWeapon handle 94 int activeweapon = -1; // client m_hActiveWeapon handle
95 int groundentity = -1; // client m_hGroundEntity handle
95 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72 96 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72
96 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; } 97 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; }
97 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100. 98 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100.
@@ -171,7 +172,9 @@ enum FeatureId {
171 FEAT_SILENTAIM = 5, 172 FEAT_SILENTAIM = 5,
172 FEAT_JUMPBUG = 6, 173 FEAT_JUMPBUG = 6,
173 FEAT_MELEE = 7, 174 FEAT_MELEE = 7,
174 FEAT_SPREAD = 8 175 FEAT_SPREAD = 8,
176 FEAT_STUCKLAUNCH = 9,
177 FEAT_COUNT = 10
175}; 178};
176enum EspOption { 179enum EspOption {
177 ESP_OPT_SHOW_NEUTRAL = 0, 180 ESP_OPT_SHOW_NEUTRAL = 0,
@@ -203,10 +206,13 @@ struct FeatureState {
203}; 206};
204 207
205extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp, 208extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp,
206 g_aimbot, g_triggerbot, g_silentaim; 209 g_aimbot, g_triggerbot, g_silentaim, g_stucklaunch;
207extern bool g_bhop_autostrafe; 210extern bool g_bhop_autostrafe;
208extern bool g_jumpbug_assist; 211extern bool g_jumpbug_assist;
209extern bool g_spread_no_spread; 212extern bool g_spread_no_spread;
213extern bool g_stucklaunch_use_spam;
214extern bool g_stucklaunch_gravspam;
215extern bool g_stucklaunch_autostrafe;
210extern bool g_aim_bones[AIM_BONE_COUNT]; 216extern bool g_aim_bones[AIM_BONE_COUNT];
211extern int g_aim_smooth; 217extern int g_aim_smooth;
212extern bool g_aim_vischeck; 218extern bool g_aim_vischeck;
@@ -245,6 +251,11 @@ bool esp_option(int opt);
245bool bhop_autostrafe_enabled(); 251bool bhop_autostrafe_enabled();
246bool jumpbug_assist_enabled(); 252bool jumpbug_assist_enabled();
247bool spread_no_spread_enabled(); 253bool spread_no_spread_enabled();
254bool stucklaunch_use_spam_enabled();
255bool stucklaunch_gravspam_enabled();
256bool stucklaunch_autostrafe_enabled();
257bool active_weapon_is_gravity_gun(void *local_ent);
258bool entity_is_physics_prop(int idx);
248unsigned aimbot_bone_mask(); 259unsigned aimbot_bone_mask();
249int aimbot_smooth_step(); 260int aimbot_smooth_step();
250bool aimbot_vischeck_enabled(); 261bool aimbot_vischeck_enabled();