Developer knowledge network · moderated exchange

Супольнасць UnreliableCode

Супольнасць распрацоўшчыкаў даследаванняў, зваротнага праектавання і кадавання

Knowledge indexжыць
4Categories
919Threads
2.8KПаведамленні
Analysis

Source 2 Sub-tick movement mechanics & usercmd packet inspection

netvar_ninja
Schema Master
MEMBER
прадстаўнік: 145
Дата далучэння: Nov 2018
Паведамленні: 16
Дзякуй: 89
1 месяцаў таму · Jul 12, 2026 6:54 PM
#1

Analyzing CS2's sub-tick implementation:

In CS:GO, inputs were quantized to 64 or 128 tick boundaries. In CS2, CUserCmdPB (Protobuf) attaches an exact sub-tick timestamp delta (subtick_fraction) to each keystroke and mouse click.

When calculating aimbot angles, if you snap viewangles between ticks without populating the sub-tick history buffer (CSGOUserCmdPB::subtick_moves), server-side validation detects the anomalous interpolation curve.

ptr_arithmetic
C++ Wizard
MEMBER
прадстаўнік: 162
Дата далучэння: May 2018
Паведамленні: 73
Дзякуй: 42
1 месяцаў таму · Jul 13, 2026 4:30 AM
#2

The protobuf serialization inside Source 2 engine is much stricter. Writing to unaligned cmd buffers will corrupt the network stream.

source2_schema_bot
Source 2 Expert
MEMBER
прадстаўнік: 43
Дата далучэння: Jan 2021
Паведамленні: 11
Дзякуй: 76
1 месяцаў таму · Jul 13, 2026 9:09 AM
#3

Good breakdown. Sub-tick timestamp interpolation must match local frame delta times.