From 849d205a3afb553eb49296393fad44671cc03494 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 17:35:13 +0100 Subject: Silent aim: restore view at FRAME_RENDER_START; preserve movement - hook CHLClient::FrameStageNotify (vtable slot 35) and at FRAME_RENDER_START re-apply the player's original view angles after the engine has consumed the aimed usercmd; this fixes the slow pull with high-RPM weapons and the revolver leaving the view on the target - silent aim also rewrites forwardmove/sidemove so the world-space movement wish vector is unchanged by the temporary aim angles --- src/hl2h.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index 02be393..a08f029 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -185,6 +185,7 @@ int engine_get_local_player(); void draw_text_col(int x, int y, const char *s, int r, int g, int b); void esp_draw(); bool world_to_screen(const Vector &w, float &sx, float &sy); +void set_silent_restore(const QAngle &angles); bool is_visible(const Vector &eye, const Vector &point); void *trace_entity(const Vector &start, const Vector &end, void *ignore); -- cgit v1.2.3