Aug 24, 2026
View on Steam↗Counter-Strike 2 Update
2/5 Minor
New custom HUD layout and player camera entities added to map scripting, alongside a massive expansion of VScript functions for community creators.
Key Changes
- 1New custom_hud_layout entity allows map creators to build custom UI with CSS
- 2New cs_player_camera entity enables scripted camera control independent of player movement
- 3Added multiple bomb-related events including OnBombPlantStart and OnBombDefuseAbort
- 4New CSPlayerPawn functions added to check C4 status and buy menu state
- 5Improved script debugging with console logging for initial run errors and promise rejections
- 6Added Entity.Move and move type manipulation functions to VScript
- 7Deprecated specific parameters in bomb events to streamline scripting
All Changes
🛠️Map Scripting(31)
- newcustom_hud_layout: Added custom_hud_layout entity for scripted maps to provide custom UI using Panel, Label, Image, and Button types.
- newcs_player_camera: Added cs_player_camera entity to give control of a player's view without moving their pawn.
- newInstance.Delay: Added Instance.Delay function.
- newInstance.OnBombPlantStart: Added Instance.OnBombPlantStart event.
- newInstance.OnBombPlantAbort: Added Instance.OnBombPlantAbort event.
- newInstance.OnBombDefuseStart: Added Instance.OnBombDefuseStart event.
- newInstance.OnBombDefuseAbort: Added Instance.OnBombDefuseAbort event.
- newInstance.OnCustomHudClicked: Added Instance.OnCustomHudClicked event.
- newInstance.IsDedicatedServer: Added Instance.IsDedicatedServer property.
- newEntity.Move: Added Entity.Move function.
- newEntity.GetMoveType: Added Entity.GetMoveType function.
- newEntity.SetMoveType: Added Entity.SetMoveType function.
- newCSPlayerPawn.GetC4: Added CSPlayerPawn.GetC4 function.
- newCSPlayerPawn.GetDefuseTarget: Added CSPlayerPawn.GetDefuseTarget function.
- newCSPlayerPawn.IsBuyMenuOpen: Added CSPlayerPawn.IsBuyMenuOpen function.
- newCSPlayerPawn.GetCamera: Added CSPlayerPawn.GetCamera function.
- newC4.GetPlantStartTime: Added C4.GetPlantStartTime function.
- newC4.GetPlantFinishTime: Added C4.GetPlantFinishTime function.
- newC4.AbortPlant: Added C4.AbortPlant function.
- newCustomHudLayout.SetHasClass: Added CustomHudLayout.SetHasClass function.
- newCustomHudLayout.SetHasClassForPlayer: Added CustomHudLayout.SetHasClassForPlayer function.
- newCustomHudLayout.SetDialogVariableString: Added CustomHudLayout.SetDialogVariableString function.
- newCustomHudLayout.SetDialogVariableStringForPlayer: Added CustomHudLayout.SetDialogVariableStringForPlayer function.
- newCustomHudLayout.SetInputCaptureEnabled: Added CustomHudLayout.SetInputCaptureEnabled function.
- newCustomHudLayout.IsInputCaptureEnabled: Added CustomHudLayout.IsInputCaptureEnabled function.
- newCSPlayerCamera.IsEnabled: Added CSPlayerCamera.IsEnabled function.
- newCSPlayerCamera.SetEnabled: Added CSPlayerCamera.SetEnabled function.
- newCSPlayerCamera.SetIsControllingAngles: Added CSPlayerCamera.SetIsControllingAngles function.
- newCSMoveType: Added enum CSMoveType.
- changeInstance.OnBombPlant: Deprecated planter from Instance.OnBombPlant event.
- changeInstance.OnBombDefuse: Deprecated defuser from Instance.OnBombDefuse event.
🔧Bug Fixes & Performance(4)
- fixScripting Events: Corrected types for some events where parameters were potentially undefined.
- fixConsole Logging: Errors encountered during initial script run are now logged to the console.
- fixConsole Logging: Unhandled promise rejections are now logged to the console.
- fixScript Loading: Added column numbers to errors caught during the CompileModule step of script loading.
Summary
Map Scripting Overhaul
This update focuses exclusively on expanding the capabilities of Counter-Strike 2's map scripting system (VScript). The most significant additions are the custom_hud_layout entity, which allows map makers to create custom UI elements using CSS, and the cs_player_camera entity for advanced camera control.
New Scripting Functions
Developers now have access to dozens of new functions and events related to bomb interactions, player pawn states, and HUD manipulation. The update also improves the debugging experience by adding more detailed error logging to the console during script compilation and execution.
