CS2 Scripting Update: Hostage API, Console Control, and GameRules Overhaul

October 23, 2026 at 06:56:10

Valve's latest CS2 update brings a host of new scripting APIs, including hostage events, console convar access, and expanded GameRules control. We break down what matters for your server and client mods.

What Changed

The latest CS2 update is a scripting-focused patch that expands the API surface for community modders. Key additions include a new Instance.Precache object with loading state checks, a full CSHostage class with pickup and rescue events, a top-level Console export for convar manipulation, and a GameRules export that centralizes round and team management. Several methods have been moved and deprecated, and a few enum mismatches have been fixed.

Impact on Matches

For competitive play, the most noticeable change is that radar_element can now appear on the radar in every game mode, not just Rush. This means custom radar elements (like player pings or objective markers) will be visible across all modes, which could affect information gathering and team coordination. Server operators should be aware that Console.SetConvar is not restricted by sv_cheats and executes synchronously—use with caution in live matches. The new GameRules methods for warmup, round termination, and team score manipulation give server admins more precise control over match flow, which can be useful for tournament setups or custom game modes.

Player Notes

If you're a modder, the new CSHostage API and events make it easier to build hostage-related game modes or HUD elements. The Console export simplifies convar access without needing to go through Instance. Remember that moved methods (like Instance.IsWarmupPeriod) are still available but deprecated, so update your scripts to use GameRules equivalents. The fixes to CSWeaponAttackType and CSTeamMoneyReason enums mean your existing scripts that relied on those values might need adjustment—check your code for any hardcoded numbers. Also, logged warnings now include the JS call stack and argument details, which will help debugging but may produce more verbose logs.

Should You Change Settings?

For most players, no in-game settings need changing. However, if you use custom HUDs or radar mods, verify compatibility with the new HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE classes. Server admins should review any scripts that use Console.SetConvar to ensure they don't inadvertently change convars during matches. The auto-complete improvement for map_workshop is a quality-of-life change for map makers.

Player Memo

  • New CSHostage API: use Instance.OnHostagePickUpStart, OnHostagePickUpAbort, OnHostagePickUp, OnHostageDrop, OnHostageRescue, OnHostageKill for events.
  • Console export: GetConvar* and SetConvar for convar access; SetConvar ignores sv_cheats and runs synchronously.
  • GameRules export: StartWarmup, EndWarmup, GetTeamScore, AddTeamScore, TerminateRound; moved methods like IsWarmupPeriod now live here but remain deprecated in Instance.
  • Radar elements now work in all game modes.
  • Fixed enum mismatches for CSWeaponAttackType and CSTeamMoneyReason; check your scripts.
  • Warnings now include call stack and argument details; expect more informative logs.