CS2 Update Patch Notes: Big Map Scripting Upgrade with Console, GameRules and Hostage APIs

CS2 update map scripting patch notes
CS2 update map scripting patch notes
Updated October 2026CS2 updateMap scripting

The latest CS2 update doesn't touch weapons or maps you play in matchmaking. Instead, Valve shipped one of the biggest upgrades yet to map scripting, the system workshop mappers and community servers use to build custom modes. If you play surf, retakes, zombie or any custom server, this is what will change your games over the next few weeks.

Here's what was added, in plain words, and why it matters even if you never open Hammer.

In short
  • New Console API: scripts can read and set convars, and SetConvar ignores sv_cheats.
  • New GameRules API: start or end warmup, change team scores, end rounds.
  • Full hostage scripting: pick up, carry, drop, rescue and kill events.
  • New Precache API to load assets cleanly.
  • HUD classes for team menu and chat, and radar elements in every game mode.
  • Lots of fixes: wrong enum values, a money crash, better warnings.
4New script exports
6New hostage events
Any modeRadar elements
0Matchmaking changes
Overview

What Changed in This CS2 Update

CS2 maps can run JavaScript-style scripts. This update adds whole new building blocks to that system:

AreaWhat's new
PrecacheInstance.Precache returns a CSPrecache object with checks for server and client loading
HostagesNew CSHostage class and six hostage events
ConsoleNew top-level Console export with convar getters and SetConvar
GameRulesNew top-level GameRules export for warmup, scores and rounds
HUD / radarNew HUD classes and radar_element in every mode

Our take: for regular players this means better custom servers. Mappers can now build proper round logic, score systems and hostage modes without hacky workarounds.

HERA.GG CS2 cheat
Our pick
HERA.GG CS2 Cheat

Custom servers or matchmaking, our CS2 cheat has an undetected aimbot, ESP and triggerbot, works on Windows 10/11 with Intel and AMD, and delivers instantly with 24/7 support.

See features and prices
Console & GameRules

New Console and GameRules APIs

The new Console export lets scripts read convars as booleans, numbers, strings, vectors, angles or colors, and set them with Console.SetConvar. Valve notes that SetConvar is not restricted by sv_cheats and runs synchronously. Instance.Msg is now Console.Log, and ClientCommand, ServerCommand and RegisterCheatCommand moved to Console too.

The new GameRules export adds StartWarmup, EndWarmup, GetTeamScore, AddTeamScore and TerminateRound. Older helpers like IsWarmupPeriod, GetRoundsPlayed and AddTeamMoney moved here as well. The old locations still work but are deprecated, so existing maps won't break.

Hostages

Hostage Scripting

Maps can now track hostages properly. The new CSHostage class tells a script if a hostage is being picked up, carried or rescued, who rescued it, and the pickup timings. Players get GetHostage, and six new events fire on pickup start, pickup abort, pickup, drop, rescue and kill.

Expect more creative hostage modes on community servers, like escort or VIP-style rounds.

HUD & fixes

HUD, Radar and Bug Fixes

  • New custom HUD classes HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE.
  • radar_element can now show on the radar in every game mode, not just Rush.
  • Fixed a crash in AddTeamMoney with reason NONE, and that combination is now supported.
  • Fixed CSTeamMoneyReason and CSWeaponAttackType enum values not matching the type definitions.
  • Fixed two radar and observer checks returning numbers instead of booleans.
  • Warnings now include the JS call stack and details about bad arguments.
  • Better autocomplete for the map_workshop command.

FAQ

CS2 Map Scripting Update Questions

Did this CS2 update change weapons or maps?

No. It only changed the map scripting system used by workshop maps and community servers.

What is Console.SetConvar in CS2?

A new script function that lets maps set convars. Valve says it is not restricted by sv_cheats and runs synchronously.

Will old CS2 workshop maps break?

They shouldn't. Methods that moved to Console or GameRules are still available in their old location, just marked as deprecated.

What does radar_element do now?

It can now appear on the radar in every game mode instead of only in Rush.

Source: official Counter-Strike 2 update notes by Valve. Game images © Valve.