Counter-Strike 2: Reverse Engineering The Sub-Tick System

Counter-Strike 2 introduced a new input system called Sub-Ticks, replacing the traditional approach where a user_cmd represented a single game tick. Instead, each command can now contain multiple sub-tick inputs, allowing the server to reconstruct player actions with much greater precision. What are Sub-Ticks? Prior to Source 2, player input was sampled once per server tick. Counter-Strike 2 instead records player actions at a higher temporal resolution by storing multiple sub-tick events inside a single user_cmd. ...

April 2, 2023 · 2 min · rakitin

Counter-Strike 2: Reverse Engineering Ray Tracing

A core requirement of any aimbot is determining whether an enemy is visible or obstructed by world geometry. To answer that question reliably, the game’s ray tracing system must be used. What is ray tracing? Ray tracing is a technique used by game engines to determine whether a line intersects with geometry or entities in the world. A ray is cast from a starting position in a specified direction, and the engine reports the first object it intersects. ...

April 1, 2023 · 4 min · rakitin