diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-26 17:16:35 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-26 17:16:35 +0100 |
| commit | b37e1f6892895e438aa7974e1144a6269d94e4aa (patch) | |
| tree | 1baf0285bb7d914a4d257169cf4a2de87a8db04e /src/hl2h.h | |
| parent | ESP: add Show box toggle (diff) | |
| download | hl2h-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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 | }; |
| 55 | extern GameInterfaces g_iface; | 56 | extern GameInterfaces g_iface; |
| 56 | 57 | ||
| @@ -168,11 +169,13 @@ bool esp_option(int opt); | |||
| 168 | bool bhop_autostrafe_enabled(); | 169 | bool bhop_autostrafe_enabled(); |
| 169 | unsigned aimbot_bone_mask(); | 170 | unsigned aimbot_bone_mask(); |
| 170 | int aimbot_smooth_step(); | 171 | int aimbot_smooth_step(); |
| 172 | bool aimbot_vischeck_enabled(); | ||
| 171 | void *entitylist_get(int idx); | 173 | void *entitylist_get(int idx); |
| 172 | int engine_get_local_player(); | 174 | int engine_get_local_player(); |
| 173 | void draw_text_col(int x, int y, const char *s, int r, int g, int b); | 175 | void draw_text_col(int x, int y, const char *s, int r, int g, int b); |
| 174 | void esp_draw(); | 176 | void esp_draw(); |
| 175 | bool world_to_screen(const Vector &w, float &sx, float &sy); | 177 | bool world_to_screen(const Vector &w, float &sx, float &sy); |
| 178 | bool 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) |
| 178 | bool bones_update(int idx, void *ent); | 181 | bool bones_update(int idx, void *ent); |
