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.cpp | |
| 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.cpp')
| -rw-r--r-- | src/hl2h.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hl2h.cpp b/src/hl2h.cpp index 85012a0..7a7d32e 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp | |||
| @@ -255,6 +255,13 @@ static void do_move(int seq) { | |||
| 255 | note_modified(cmd, flags, vel); | 255 | note_modified(cmd, flags, vel); |
| 256 | } | 256 | } |
| 257 | } | 257 | } |
| 258 | |||
| 259 | if (feature_active(FEAT_TRIGGERBOT)) { | ||
| 260 | if (triggerbot_apply(cmd)) { | ||
| 261 | const float *vel = (const float *)(e + g_net.velocity); | ||
| 262 | note_modified(cmd, flags, vel); | ||
| 263 | } | ||
| 264 | } | ||
| 258 | } | 265 | } |
| 259 | 266 | ||
| 260 | // --------------------------------------------------------------------------- | 267 | // --------------------------------------------------------------------------- |
