summaryrefslogtreecommitdiffstats
path: root/src/hl2h.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-26 17:22:25 +0100
committersalmonik <salmonik@tuta.io>2026-10-26 17:22:25 +0100
commite9944657c7ddefb3b8d2c8373c97fa47629ea1b8 (patch)
treed79bb7b262b5791d05f1a087b0db4515ce69b47d /src/hl2h.cpp
parentAimbot v3: world-only vischeck (diff)
downloadhl2h-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 '')
-rw-r--r--src/hl2h.cpp7
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// ---------------------------------------------------------------------------