Valve’s October 23 CS2 update focuses on map scripting. It adds asset precaching, a dedicated hostage API and new Console and GameRules exports, alongside fixes for script types, radar elements and diagnostics. The patch notes contain no weapon balance or competitive map-pool changes.
Asset loading and hostage events
Instance.Precache returns a CSPrecache object. Scripts can check whether resources are loading or loaded on the server and client with IsServerLoading, IsServerLoaded, IsClientLoading and IsClientLoaded. The object also provides IsLoadedForAll and Release.
The new CSHostage API exposes whether a hostage is being picked up, carried or has been rescued, identifies the rescuer and reports pickup start and finish times. CSPlayerPawn.GetHostage complements these methods. Map scripts also gain Instance events for pickup start, cancellation and completion, dropping, rescue and death: OnHostagePickUpStart, OnHostagePickUpAbort, OnHostagePickUp, OnHostageDrop, OnHostageRescue and OnHostageKill.
Console and GameRules: what moves where
Two new top-level exports reorganize console access and round management. For authors maintaining existing scripts, Valve confirms that moved or renamed methods remain available at their original locations, marked as deprecated.
Console: new GetConvar methods read boolean, number, string, vector, QAngle and color values.
Console.SetConvarexecutes synchronously and is not restricted bysv_cheats. These are map-scripting API changes.Renamed logging:
Instance.MsgbecomesConsole.Log. ClientCommand, ServerCommand and RegisterCheatCommand also move from Instance to Console.GameRules: new methods include StartWarmup, EndWarmup, GetTeamScore, AddTeamScore and TerminateRound.
Moved round helpers: IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime and AddTeamMoney move from Instance to GameRules.
HUD, radar and scripting fixes
Custom HUD layouts gain the top-level classes HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE. The radar_element can now appear on the radar in every game mode, extending support beyond Rush.
Valve adds support for GameRules.AddTeamMoney with CSTeamMoneyReason.NONE and an amount, and fixes a crash involving that reason. The update also corrects CSTeamMoneyReason and CSWeaponAttackType enum values that did not match point_script.d.ts.
CSRadarPoint.IsVisibleToTeam and CSObservablePoint.IsObservableForTeam now return booleans instead of numbers. Logged warnings include the JavaScript call stack and details of invalid argument values; argument numbering now starts at zero. Autocomplete for map_workshop has also been improved.
For map creators, the practical takeaway is to review deprecated calls and the corrected return types when updating scripts. For players, this release primarily expands the tools available to community map authors.
Based on official CS2 blog updates: Valve’s full patch notes and the official CS2 update archive.
Discussion
No comments yet. Be the first to share your thoughts!