diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-26 17:22:25 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-26 17:22:25 +0100 |
| commit | e9944657c7ddefb3b8d2c8373c97fa47629ea1b8 (patch) | |
| tree | d79bb7b262b5791d05f1a087b0db4515ce69b47d /src/hl2h.h | |
| parent | Aimbot v3: world-only vischeck (diff) | |
| download | hl2h-e9944657c7ddefb3b8d2c8373c97fa47629ea1b8.tar.gz hl2h-e9944657c7ddefb3b8d2c8373c97fa47629ea1b8.zip | |
Triggerbot: crosshair entity trace, hostile-only
- top-level Triggerbot feature (Active + Bind, default Mouse4, rebindable)
- trace the crosshair ray from the eye with MASK_SHOT and TRACE_EVERYTHING;
the filter ignores the local player
- if the first entity hit is a live hostile NPC, press IN_ATTACK and fix the
usercmd CRC; walls/props/friendly/neutral/corpses do not trigger
- independent of Aimbot; config [triggerbot] active/bind
Diffstat (limited to 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -136,9 +136,17 @@ struct QAngle { float x, y, z; }; | |||
| 136 | extern Vector g_cam_eye; | 136 | extern Vector g_cam_eye; |
| 137 | extern Vector g_cam_view; | 137 | extern Vector g_cam_view; |
| 138 | QAngle vector_angles(const Vector &forward); | 138 | QAngle vector_angles(const Vector &forward); |
| 139 | Vector angle_forward_vector(const QAngle &angles); | ||
| 139 | float getfov(const QAngle &my_view, const QAngle &aim_ang); | 140 | float getfov(const QAngle &my_view, const QAngle &aim_ang); |
| 140 | bool aimbot_apply(CUserCmd *cmd); | 141 | bool aimbot_apply(CUserCmd *cmd); |
| 141 | enum FeatureId { FEAT_BHOP = 0, FEAT_ABH = 1, FEAT_ESP = 2, FEAT_AIMBOT = 3 }; | 142 | bool triggerbot_apply(CUserCmd *cmd); |
| 143 | enum FeatureId { | ||
| 144 | FEAT_BHOP = 0, | ||
| 145 | FEAT_ABH = 1, | ||
| 146 | FEAT_ESP = 2, | ||
| 147 | FEAT_AIMBOT = 3, | ||
| 148 | FEAT_TRIGGERBOT = 4 | ||
| 149 | }; | ||
| 142 | enum EspOption { | 150 | enum EspOption { |
| 143 | ESP_OPT_SHOW_NEUTRAL = 0, | 151 | ESP_OPT_SHOW_NEUTRAL = 0, |
| 144 | ESP_OPT_SHOW_HEALTHBAR = 1, | 152 | ESP_OPT_SHOW_HEALTHBAR = 1, |
| @@ -176,6 +184,7 @@ void draw_text_col(int x, int y, const char *s, int r, int g, int b); | |||
| 176 | void esp_draw(); | 184 | void esp_draw(); |
| 177 | bool world_to_screen(const Vector &w, float &sx, float &sy); | 185 | bool world_to_screen(const Vector &w, float &sx, float &sy); |
| 178 | bool is_visible(const Vector &eye, const Vector &point); | 186 | bool is_visible(const Vector &eye, const Vector &point); |
| 187 | void *trace_entity(const Vector &start, const Vector &end, void *ignore); | ||
| 179 | 188 | ||
| 180 | // bones.cpp — client-side animated skeleton / hitbox access (see there) | 189 | // bones.cpp — client-side animated skeleton / hitbox access (see there) |
| 181 | bool bones_update(int idx, void *ent); | 190 | bool bones_update(int idx, void *ent); |
