From ccdcd4ad0483b98c9c20bd1304ad062ef8af3a4b Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 16:39:11 +0100 Subject: Aimbot: head-only nearest-to-crosshair with bounded smoothing - select the hostile NPC whose (approximate) head is closest in angle to the crosshair, then refine to its actual head hitbox/bone - aimbot menu feature (Active + Bind, default Mouse5, rebindable via the existing bind chooser); config [aimbot] active/bind - never snap: move at most 5 degrees per tick toward the target, shortest-path yaw, pitch clamped to +/-89, 0.05 degree deadzone; no overshoot/oscillation - fixes the usercmd CRC after modifying viewangles - skip when dead; ignores friendly/neutral entities (crows, citizens, ...) --- 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 b666585..21fa7ae 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp @@ -241,6 +241,13 @@ static void do_move(int seq) { note_modified(cmd, flags, vel); } } + + if (feature_active(FEAT_AIMBOT)) { + if (aimbot_apply(cmd)) { + const float *vel = (const float *)(e + g_net.velocity); + note_modified(cmd, flags, vel); + } + } } // --------------------------------------------------------------------------- -- cgit v1.2.3