CS2 Patch Adds New Map Scripting Entities, Instance Events, and Camera Controls
Just after the Esports World Cup concluded, Counter-Strike 2 has received another update, this time centered on map scripting changes. The latest release adds new scripting entities and instance events, expands the Custom HUD toolset for scripted interfaces, and introduces controls for player camera behavior—all aimed at giving map makers more ways to build interactive experiences.
New Custom HUD entry for scripted map interfaces
The update introduces a new scriptable entity: custom_hud_layout. It’s designed as an entry point for maps that use scripting to create a custom user interface.
- Purpose: Create a custom HUD layout for scripted maps.
- Supported panel types: Panel, Label, Image, Button.
- Styling: CSS styling is supported.
- Limitations: Client-side events and client-side scripts are not supported.
- Reload behavior: The HUD layout state is preserved when reloading the tool mode.
Player camera control without moving the pawn
A second major scripting addition is cs_player_camera. This entity allows control over the player’s view without needing to physically move the player’s pawn.
- What it enables: Control the player’s camera view independently of pawn movement.
- Look behavior: Can be configured so the player can look around from a scripted position.
Expanded scripting hooks for bomb events and timing
The update adds several new Instance events related to bomb plant and defuse flows, plus a new delay helper.
- Added: Instance.Delay.
- Added bomb plant hooks: Instance.OnBombPlantStart and Instance.OnBombPlantAbort.
- Added bomb defuse hooks: Instance.OnBombDefuseStart and Instance.OnBombDefuseAbort.
- Added: Instance.OnCustomHudClicked.
- Added: Instance.IsDedicatedServer.
More CSPlayerPawn and C4 scripting functions
Multiple new functions have been added for working with the player pawn and the bomb object.
- CSPlayerPawn additions: GetC4, GetDefuseTarget, IsBuyMenuOpen, and GetCamera.
- C4 additions: GetPlantStartTime, GetPlantFinishTime, and AbortPlant.
Entity movement and move type control
New entity movement helpers expand how scripts can influence mobility behavior.
- Added: Entity.Move.
- Added: Entity.GetMoveType.
- Added: Entity.SetMoveType.
- Added enum: CSMoveType.
Custom HUD layout interaction and class/variables support
The update also adds additional methods for working with the new HUD layout system, including class handling, dialog variables, and input capture controls.
- Added: CustomHudLayout.SetHasClass.
- Added: CustomHudLayout.SetHasClassForPlayer.
- Added: CustomHudLayout.SetDialogVariableString and SetDialogVariableStringForPlayer.
- Added: CustomHudLayout.SetInputCaptureEnabled and IsInputCaptureEnabled.
Camera enable/angle-control helpers
For the new camera entity, additional scripting controls were added to toggle functionality and decide whether scripted angles are being controlled.
- Added: CSPlayerCamera.IsEnabled.
- Added: CSPlayerCamera.SetEnabled.
- Added: CSPlayerCamera.SetIsControllingAngles.
Tooling and script debugging improvements
The update includes changes intended to make initial script execution and compile-time issues easier to diagnose.
- Some event parameter types were corrected where parameters could previously be undefined.
- Errors during initial script startup are now logged to the console.
- Unhandled promise rejections are now logged to the console.
- CompileModule load errors detected during the compile step now include a column number in the error details.
Removed functions tied to bomb plant/defuse events
Two functions were withdrawn from existing bomb-related instance events.
- Removed function “planter” from Instance.OnBombPlant.
- Removed defuse function from Instance.OnBombDefuse.
The change set lands in CS2 on August 25, 2026, and focuses heavily on improving the map scripting toolkit for HUD layouts, player camera behavior, and bomb-related instance events.
