Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » News » Counter-Strike 2 update from 22.10.2026: map scripting changes

Counter-Strike 2 update from 22.10.2026: map scripting changes

11.11.2026, 10:22adminViews: 1Comments: 0
Counter-Strike 2 update from 22.10.2026: map scripting changes

About this content

Map scripting

  • Added Instance.Precache, which returns a CSPrecacheobject. Its new methods: IsServerLoading, IsServerLoaded, IsClientLoading, IsClientLoaded, IsLoadedForAll і Release.
  • Added CSHostage with the methods IsBeingPickedUp, IsBeingCarried, IsRescued, GetRescuer, GetPickUpStartTime і GetPickUpFinishTime. Also added CSPlayerPawn.GetHostage and the events Instance.OnHostagePickUpStart, OnHostagePickUpAbort, OnHostagePickUp, OnHostageDrop, OnHostageRescue і OnHostageKill.
  • Added the top-level export Console with the methods GetConvarBoolean, GetConvarNumber, GetConvarString, GetConvarVector, GetConvarQAngle, GetConvarColor і SetConvar. Console.SetConvar runs synchronously and is not limited by sv_cheats. Instance.Msg renamed to Console.Log, а Instance.ClientCommand, ServerCommand і RegisterCheatCommand moved to Console.
  • Added the top-level export GameRules from StartWarmup, EndWarmup, GetTeamScore, AddTeamScore і TerminateRoundThe following were moved to it: Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime і AddTeamMoneyThe moved and renamed methods remain available in their previous location, but are marked as deprecated.

Other changes

  • For custom_hud_layout added the top-level classes HUD_TEAMMENU_VISIBLE і HUD_CHAT_VISIBLEThe radar_element element can now be displayed on the radar in all modes, not just Rush.
  • Added support for GameRules.AddTeamMoney from CSTeamMoneyReason.NONE and amount; fixed this method crashing with NONE.
  • Fixed a mismatch in the values of CSTeamMoneyReason і CSWeaponAttackType у point_script.d.ts. CSRadarPoint.IsVisibleToTeam і CSObservablePoint.IsObservableForTeam now return a boolean instead of a number.
  • Log warnings now include the JavaScript call stack and details of invalid argument values; argument numbering starts at 0. Also improved command autocomplete for map_workshop.

Similar content

Comments (0)

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password