COUNTER-STRIKE / CSCO

CS COMMUNITY

News
/

CS2 October 23 update: new map scripting tools

Valve expands CS2 map scripting with precaching, hostage events, Console and GameRules APIs, plus HUD, radar and debugging fixes.

CS2 October 23 update: new map scripting tools

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.SetConvar executes synchronously and is not restricted by sv_cheats. These are map-scripting API changes.

  • Renamed logging: Instance.Msg becomes Console.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.

0

Discussion

No comments yet. Be the first to share your thoughts!

Related Stories

View All News
CS2 November 24 update: Cobblestone and silent reload fixes CS2 Updates

CS2 November 24 update: Cobblestone and silent reload fixes

Valve fixes unreachable bombs, grenade clipping and movement on Cobblestone, plus third-person silen...

36 0
CS2 November 19 update: Cobblestone fixes and X-Ray in Switzerland CS2 Updates

CS2 November 19 update: Cobblestone fixes and X-Ray in Switzerland

Valve fixes Cobblestone and an Inferno grenade exploit, updates the AWP reload animation and introdu...

174 0
Cobblestone returns to CS2 as the Singapore 2026 Major hub opens CS2 Updates

Cobblestone returns to CS2 as the Singapore 2026 Major hub opens

The November 18 CS2 update brings snowy Cobblestone, Singapore 2026 stickers and Viewer Pass rewards...

169 0