From 92d388116cc19ef728d66ac67eaa4f584e63d895 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 17:30:29 +0100 Subject: Silent aim: exact usercmd angle + fire, restore rendered view - new top-level Silent aim feature (Active + Bind, default Mouse3) - reuses the shared aim-target selection (bone checklist, nearest selected point, world-only MASK_VISIBLE vischeck) - writes the exact target angle into cmd->viewangles, sets IN_ATTACK for the shot, then immediately restores engine view angles to the player's input view (g_cam_view) so the camera stays where it was - shares the vischeck/bone selection with the aimbot; independent of the aimbot/triggerbot binds - config [silentaim] 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 7a7d32e..89d6b89 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp @@ -262,6 +262,13 @@ static void do_move(int seq) { note_modified(cmd, flags, vel); } } + + if (feature_active(FEAT_SILENTAIM)) { + if (silent_aim_apply(cmd)) { + const float *vel = (const float *)(e + g_net.velocity); + note_modified(cmd, flags, vel); + } + } } // --------------------------------------------------------------------------- -- cgit v1.2.3