Developer knowledge network · moderated exchange

Społeczność UnreliableCode

Badania programistów, inżynieria wsteczna i społeczność programistów

Knowledge indexNa żywo
4Categories
919Threads
2.8KPosty
Guide

Sub-Tick UserCmd Protobuf Angle Modification for Silent Aim in CS2 [v2.4 Technical Discussion]

hook_doctor
Hooking Specialist
MEMBER
Rozpustnik: 181
Data dołączenia: Jul 2019
Posty: 21
Dzięki: 50
1 miesięcy temu · Jul 12, 2026 3:06 AM
#1

In Counter-Strike 2, user commands use Protobuf serialization (CSGOUserCmdPB / CBaseUserCmdPB).

To alter aim angles without jittering the local first-person camera view:

  1. Hook CreateMove in client.dll.
  2. Access the active CUserCmdBase pointer.
  3. Modify pUserCmd->pSubTickContainer->pMessages->view_angles to target head bone angles.
  4. Preserve local camera angles in C_CSPlayerPawn->m_angEyeAngles.

The server receives the exact bullet vector while the local client screen remains butter-smooth and jitter-free!

netvar_ninja
Schema Master
MEMBER
Rozpustnik: 145
Data dołączenia: Nov 2018
Posty: 16
Dzięki: 89
1 miesięcy temu · Jul 12, 2026 8:32 AM
#2

Protobuf sub-tick usercmd manipulation is so much cleaner than the old CS:GO CUserCmd struct patching.

ptr_arithmetic
C++ Wizard
MEMBER
Rozpustnik: 162
Data dołączenia: May 2018
Posty: 73
Dzięki: 42
1 miesięcy temu · Jul 12, 2026 9:53 PM
#3

Just remember to normalize angles (-180 <= yaw <= 180 and -89 <= pitch <= 89) to prevent untrusted angle kicks.