summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-26 17:16:35 +0100
committersalmonik <salmonik@tuta.io>2026-10-26 17:16:35 +0100
commitb37e1f6892895e438aa7974e1144a6269d94e4aa (patch)
tree1baf0285bb7d914a4d257169cf4a2de87a8db04e /src/hl2h.h
parentESP: add Show box toggle (diff)
downloadhl2h-b37e1f6892895e438aa7974e1144a6269d94e4aa.tar.gz
hl2h-b37e1f6892895e438aa7974e1144a6269d94e4aa.zip
Aimbot v3: world-only vischeck
- resolve EngineTraceClient003; TraceRay (slot 4) from the eye to the exact selected hitbox/bone point with MASK_VISIBLE - TRACE_WORLD_ONLY filter as requested (static props are not tested, per SDK) - Aimbot -> Vischeck toggle, persisted as vischeck=1; when on, blocked targets are skipped and the next-nearest candidate is tried - target candidates are ranked by angle; on each target the nearest visible selected hitbox point wins
Diffstat (limited to '')
-rw-r--r--src/hl2h.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 13af3d2..98d93f4 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -51,6 +51,7 @@ struct GameInterfaces {
51 void *modelinfo = nullptr; // IVModelInfoClient006 (model index -> model name) 51 void *modelinfo = nullptr; // IVModelInfoClient006 (model index -> model name)
52 void *engineserver = nullptr; // IVEngineServer021 (edict access, incl. server entities) 52 void *engineserver = nullptr; // IVEngineServer021 (edict access, incl. server entities)
53 void *debugoverlay = nullptr; // IVDebugOverlay003 (engine-accurate world->screen) 53 void *debugoverlay = nullptr; // IVDebugOverlay003 (engine-accurate world->screen)
54 void *enginetrace = nullptr; // EngineTraceClient003 (world vischeck)
54}; 55};
55extern GameInterfaces g_iface; 56extern GameInterfaces g_iface;
56 57
@@ -168,11 +169,13 @@ bool esp_option(int opt);
168bool bhop_autostrafe_enabled(); 169bool bhop_autostrafe_enabled();
169unsigned aimbot_bone_mask(); 170unsigned aimbot_bone_mask();
170int aimbot_smooth_step(); 171int aimbot_smooth_step();
172bool aimbot_vischeck_enabled();
171void *entitylist_get(int idx); 173void *entitylist_get(int idx);
172int engine_get_local_player(); 174int engine_get_local_player();
173void draw_text_col(int x, int y, const char *s, int r, int g, int b); 175void draw_text_col(int x, int y, const char *s, int r, int g, int b);
174void esp_draw(); 176void esp_draw();
175bool world_to_screen(const Vector &w, float &sx, float &sy); 177bool world_to_screen(const Vector &w, float &sx, float &sy);
178bool is_visible(const Vector &eye, const Vector &point);
176 179
177// bones.cpp — client-side animated skeleton / hitbox access (see there) 180// bones.cpp — client-side animated skeleton / hitbox access (see there)
178bool bones_update(int idx, void *ent); 181bool bones_update(int idx, void *ent);