All news
August 24, 2026

CS2 update, August 25, 2026: Scripted map API expansion

What changed

  • Added custom_hud_layout entity:
  • custom_hud_layouts are the entry point for scripted maps to provide custom UI.
  • Panel, Label, Image, and Button panel types are supported.
  • Styling with css is supported.
  • Events and client side scripting are not supported.
  • Maintains state during tools mode reloads.
  • Added cs_player_camera entity:
  • Gives control of a player's view without moving their pawn.
  • Can be configured to let the player look around from the scripted position.
  • Added Instance.Delay
  • Added Instance.OnBombPlantStart
  • Added Instance.OnBombPlantAbort
  • Added Instance.OnBombDefuseStart
  • Added Instance.OnBombDefuseAbort
  • Added Instance.OnCustomHudClicked
  • Added Instance.IsDedicatedServer
  • Added Entity.Move
  • Added Entity.GetMoveType
  • Added Entity.SetMoveType
  • Added CSPlayerPawn.GetC4
  • Added CSPlayerPawn.GetDefuseTarget
  • Added CSPlayerPawn.IsBuyMenuOpen
  • Added CSPlayerPawn.GetCamera
  • Added C4.GetPlantStartTime
  • Added C4.GetPlantFinishTime
  • Added C4.AbortPlant
  • Added CustomHudLayout.SetHasClass
  • Added CustomHudLayout.SetHasClassForPlayer
  • Added CustomHudLayout.SetDialogVariableString
  • Added CustomHudLayout.SetDialogVariableStringForPlayer
  • Added CustomHudLayout.SetInputCaptureEnabled
  • Added CustomHudLayout.IsInputCaptureEnabled
  • Added CSPlayerCamera.IsEnabled
  • Added CSPlayerCamera.SetEnabled
  • Added CSPlayerCamera.SetIsControllingAngles
  • Added enum CSMoveType
  • Corrected types for some events where parameters were maybe undefined.
  • Errors encountered during initial script run are now logged to the console.
  • Unhandled promise rejections are now logged to the console.
  • Added the column number to errors caught during the CompileModule step of script loading.
  • Deprecated planter from Instance.OnBombPlant event
  • Deprecated defuser from Instance.OnBombDefuse event

What it means for players and servers

Valve has expanded the API for scripted map developers, adding tools to create custom user interfaces and control player camera. Creators can now use custom_hud_layout to build custom panels with CSS styling support and cs_player_camera to control the camera without moving the player character. This enables more complex and interactive modes based on scripted maps.

For community server administrators, the update means plugin developers and map authors get access to new methods for bomb handling, weapon purchasing, input capture, and script debugging. Error handling has improved: all script startup errors and unhandled promise rejections are now logged to console with line numbers. This will simplify troubleshooting on servers.

The update directly impacts scripted maps and custom game modes. Developers should check existing scripts, as some events (Instance.OnBombPlant and Instance.OnBombDefuse) are now deprecated and may be removed in the future.

Source: original on Steam

Want to play right now? Check the CS2 server monitoring with players online, maps and modes.