From e9944657c7ddefb3b8d2c8373c97fa47629ea1b8 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 17:22:25 +0100 Subject: 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 --- src/hl2h.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/hl2h.cpp') 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) { note_modified(cmd, flags, vel); } } + + if (feature_active(FEAT_TRIGGERBOT)) { + if (triggerbot_apply(cmd)) { + const float *vel = (const float *)(e + g_net.velocity); + note_modified(cmd, flags, vel); + } + } } // --------------------------------------------------------------------------- -- cgit v1.2.3