August 25 CS Update: Multiple Map Scripts Added

August 25, 2026

August 25 CS Update: Multiple Map Scripts Added

CS2 Update Log

【Map Script】

Add new custom_hud_layout entity:

custom_hud_layouts is the entry point for scripted maps to provide custom UI.

Supports four types of UI components: Panel, Label, Image, and Button.

Support for styling with CSS.

Note: Event triggering and client scripting are currently not supported.

Its state is maintained during tool mode reload.

Added cs_player_camera entity:

Allows controlling the player's view without moving the player's character model (Pawn).

Can be configured to allow players to look around freely at positions specified by the script.

Added the following instance functions/events:

Instance.Delay (Delayed Execution)

Instance.OnBombPlantStart (Triggered when the bomb starts planting)

Instance.OnBombPlantAbort (Triggered when bomb plant is aborted)

Instance.OnBombDefuseStart (Triggers when bomb defusal begins)

Instance.OnBombDefuseAbort (Triggered when bomb defusal is aborted)

Instance.OnCustomHudClicked (Triggered when a custom HUD is clicked)

Instance.IsDedicatedServer (Detect whether it is a dedicated server)

The following Entity functions are added:

Entity.Move (Move Entity)

Entity.GetMoveType (Get Move Type)

Entity.SetMoveType (Set Move Type)

Added the following player pawn (CSPlayerPawn) functions:

CSPlayerPawn.GetC4 (Retrieves the C4 bomb held by the player)

CSPlayerPawn.GetDefuseTarget (Retrieves the bomb target the player is defusing)

CSPlayerPawn.IsBuyMenuOpen (checks whether the player has opened the buy menu)

CSPlayerPawn.GetCamera (retrieves the player's camera entity)

Add the following C4 bomb functions:

C4.GetPlantStartTime (Get start installation timestamp)

C4.GetPlantFinishTime (gets the timestamp when the installation is completed)

C4.AbortPlant (Interrupt Bomb Installation)

The following custom HUD layout (CustomHudLayout) functions have been added:

CustomHudLayout.SetHasClass (set CSS class)

CustomHudLayout.SetHasClassForPlayer (sets a CSS class for the specified player)

CustomHudLayout.SetDialogVariableString (Set Dialog Variable String)

CustomHudLayout.SetDialogVariableStringForPlayer (Sets the dialog variable string for a specified player)

CustomHudLayout.SetInputCaptureEnabled (Enable/Disable Input Capture)

CustomHudLayout.IsInputCaptureEnabled (Checks if input capture is enabled)

Added CSPlayerCamera function:

CSPlayerCamera.IsEnabled (checks whether the camera is enabled)

CSPlayerCamera.SetEnabled (Enable/Disable Camera State)

CSPlayerCamera.SetIsControllingAngles (Sets whether to control the viewing angle)

Added enumeration type: CSMoveType (Movement Type Enumeration).

Error and Debugging Optimization:

Fixed a type issue where parameters could be "undefined" in certain events.

Errors encountered during script initialization will now be logged to the console.

Unhandled promise rejections are now logged to the console.

Errors captured during the "CompileModule" step of script loading now display column numbers.

Deprecated: The planter parameter in the Instance.OnBombPlant event.

Deprecated: The defuser parameter in the Instance.OnBombDefuse event.

Więcej w Esport

Zobacz wszystkie artykuły