
Valve added precaching APIs, hostage events and more detailed warnings for map creators.
Valve’s October 22 CS2 update focuses on Map Scripting. Instance.Precache returns a CSPrecache object with server and client loading checks, an all-player loaded check and Release. These are map-scripting tools rather than an announcement of a new ordinary matchmaking mode.
The new CSHostage supports checking pickup, carrying and rescue, plus the rescuer and pickup start or finish times. Events cover pickup start, abort, completion, dropping, rescue and death. CSPlayerPawn.GetHostage connects the checks to a player.
New top-level Console and GameRules exports reorganize the API. Instance.Msg became Console.Log, while several commands and methods moved into the new namespaces. Valve says moved and renamed methods remain at their original locations for now, marked deprecated.
Fixes address a GameRules.AddTeamMoney crash with CSTeamMoneyReason.NONE, mismatched enum values and two visibility checks returning numbers instead of booleans. Warnings gain JS call stacks, bad-argument details and zero-based argument numbering. Radar_element can now appear in every mode, and map_workshop autocomplete is improved.
Sources and checks
Counter-Strike 2 Update · Official developer announcement