CS2 October 22 2026 update: the new Console and GameRules script exports, CSPrecache, and CSHostage
Posted: Fri Oct 23, 2026 6:04 am
Quick summary
Valve shipped a Counter-Strike 2 update on October 22, 2026 that is aimed at map scripters. The notes add three new top level script exports, give scripts access to the hostage entity, and add two HUD classes. Methods that moved are still available where they were, marked deprecated.
CSPrecache
The new CSPrecache object reports loading state. It is reached through Instance.Precache.
The new Console export reads and writes convars from script.
GameRules
HUD and radar
Sources
Valve shipped a Counter-Strike 2 update on October 22, 2026 that is aimed at map scripters. The notes add three new top level script exports, give scripts access to the hostage entity, and add two HUD classes. Methods that moved are still available where they were, marked deprecated.
CSPrecache
The new CSPrecache object reports loading state. It is reached through Instance.Precache.
- CSPrecache.IsServerLoading
- CSPrecache.IsServerLoaded
- CSPrecache.IsClientLoading
- CSPrecache.IsClientLoaded
- CSPrecache.IsLoadedForAll
- CSPrecache.Release
- CSHostage.IsBeingPickedUp
- CSHostage.IsBeingCarried
- CSHostage.IsRescued
- CSHostage.GetRescuer
- CSHostage.GetPickUpStartTime
- CSHostage.GetPickUpFinishTime
- CSPlayerPawn.GetHostage
- Instance.OnHostagePickUpStart
- Instance.OnHostagePickUpAbort
- Instance.OnHostagePickUp
- Instance.OnHostageDrop
- Instance.OnHostageRescue
- Instance.OnHostageKill
The new Console export reads and writes convars from script.
- Console.GetConvarBoolean
- Console.GetConvarNumber
- Console.GetConvarString
- Console.GetConvarVector
- Console.GetConvarQAngle
- Console.GetConvarColor
- Console.SetConvar
GameRules
- GameRules.StartWarmup
- GameRules.EndWarmup
- GameRules.GetTeamScore
- GameRules.AddTeamScore
- GameRules.TerminateRound
HUD and radar
- Two new top level custom_hud_layout classes: HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE.
- radar_element can now appear on the radar in every game mode, not just Rush.
- GameRules.AddTeamMoney works with CSTeamMoneyReason.NONE and an amount.
- Fixed a crash in GameRules.AddTeamMoney with CSTeamMoneyReason.NONE.
- Fixed CSTeamMoneyReason and CSWeaponAttackType enum values not matching point_script.d.ts.
- Fixed CSRadarPoint.IsVisibleToTeam and CSObservablePoint.IsObservableForTeam returning a number instead of a boolean.
- Logged warnings now include the JS call stack and details about bad argument values.
- Logged warnings now count arguments from 0 instead of 1.
- Improved auto complete of the map_workshop command.
Sources