Updates2 min read
CS2 Update, August 24, 2026: Map Scripting Additions
by skins.inc Team
MAP SCRIPTING
- Added the
custom_hud_layoutentity:custom_hud_layoutsare the entry point for scripted maps to provide custom UI.Panel,Label,Image, andButtonpanel types are supported.- Styling with CSS is supported.
- Events and client-side scripting are not supported.
- Maintains state during tools mode reloads.
- Added the
cs_player_cameraentity:- 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 may have been undefined.
- Errors encountered during the 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
CompileModulestep of script loading. - Deprecated
planterfromInstance.OnBombPlantevent. - Deprecated
defuserfromInstance.OnBombDefuseevent.
Source: Official Announcement