CS2Counter-Strike 2 Update
8/25/2026
MAP SCRIPTING
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.
New Instance Methods:
Instance.Delay
Instance.OnBombPlantStart
Instance.OnBombPlantAbort
Instance.OnBombDefuseStart
Instance.OnBombDefuseAbort
Instance.OnCustomHudClicked
Instance.IsDedicatedServer
New Entity Methods:
Entity.Move
Entity.GetMoveType
Entity.SetMoveType
New CSPlayerPawn Methods:
CSPlayerPawn.GetC4
CSPlayerPawn.GetDefuseTarget
CSPlayerPawn.IsBuyMenuOpen
CSPlayerPawn.GetCamera
New C4 Methods:
C4.GetPlantStartTime
C4.GetPlantFinishTime
C4.AbortPlant
New CustomHudLayout Methods:
CustomHudLayout.SetHasClass
CustomHudLayout.SetHasClassForPlayer
CustomHudLayout.SetDialogVariableString
CustomHudLayout.SetDialogVariableStringForPlayer
CustomHudLayout.SetInputCaptureEnabled
CustomHudLayout.IsInputCaptureEnabled
New CSPlayerCamera Methods:
CSPlayerCamera.IsEnabled
CSPlayerCamera.SetEnabled
CSPlayerCamera.SetIsControllingAngles
New Enum:
Other Changes:
- 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.