Counter-Strike 2 Update Adds Hostage Hooks and More Control for Map Creators
The scripting changes also add resource-loading checks, console controls, and new ways to manage round rules.

Counter-Strike 2’s latest update gives custom-map creators new scripting tools for resource loading, hostage interactions, console variables, and round rules.
Scripts can now track hostage pickup, carrying, rescue, dropping, and kills, as well as check whether resources are loading or ready on the server and client. New top-level Console and GameRules exports also bring together controls for console variables, warm-up periods, team scores, and round termination. Valve’s Steam update notes specify that Console.SetConvar runs synchronously and is not restricted by sv_cheats. Methods that were moved or renamed remain available in their original locations, but are deprecated.
Counter-Strike 2 Patch Notes
[ MAP SCRIPTING ]
- Added Instance.Precache
- Returns a CSPrecache object
- Added CSPrecache.IsServerLoading
- Added CSPrecache.IsServerLoaded
- Added CSPrecache.IsClientLoading
- Added CSPrecache.IsClientLoaded
- Added CSPrecache.IsLoadedForAll
- Added CSPrecache.Release
- Added CSHostage
- Added CSHostage.IsBeingPickedUp
- Added CSHostage.IsBeingCarried
- Added CSHostage.IsRescued
- Added CSHostage.GetRescuer
- Added CSHostage.GetPickUpStartTime
- Added CSHostage.GetPickUpFinishTime
- Added CSPlayerPawn.GetHostage
- Added Instance.OnHostagePickUpStart
- Added Instance.OnHostagePickUpAbort
- Added Instance.OnHostagePickUp
- Added Instance.OnHostageDrop
- Added Instance.OnHostageRescue
- Added Instance.OnHostageKill
- Added new top level export Console
- Added Console.GetConvarBoolean
- Added Console.GetConvarNumber
- Added Console.GetConvarString
- Added Console.GetConvarVector
- Added Console.GetConvarQAngle
- Added Console.GetConvarColor
- Added Console.SetConvar
- Console.SetConvar is not restricted by sv_cheats and executes synchronously
- Renamed Instance.Msg to Console.Log
- Moved Instance.ClientCommand, ServerCommand and RegisterCheatCommand to Console
- Added new top level export GameRules
- Added GameRules.StartWarmup
- Added GameRules.EndWarmup
- Added GameRules.GetTeamScore
- Added GameRules.AddTeamScore
- Added GameRules.TerminateRound
- Moved Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime and AddTeamMoney to GameRules
- Moved and renamed methods are still available in their original location, deprecated
- Added 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
- Added support for GameRules.AddTeamMoney with CSTeamMoneyReason.NONE and an amount
- Fixed a crash in GameRules.AddTeamMoney with CSTeamMoneyReason.NONE
- Fixed CSTeamMoneyReason enum values not matching point_script.d.ts
- Fixed CSWeaponAttackType enum values not matching point_script.d.ts
- Fixed CSRadarPoint.IsVisibleToTeam returning a number instead of a boolean
- Fixed CSObservablePoint.IsObservableForTeam returning a number instead of a boolean
- Logged warnings now include the JS call stack
- Logged warnings now include details about bad argument values
- Logged warnings now count arguments from 0 instead of 1
- Improved auto complete of the map_workshop command
Which of these additions would you most like to see used in a custom map? Keep up with changes to Counter-Strike 2’s creator tools and more through X, Bluesky, YouTube, Instagram, Steam, and Telegram.
Counter-Strike 2
Developed by Valve






