Code updateAug 24, 2026, 11:42 PM UTC

CS2 Update (Aug 24, 2026)

CS2 adds an experimental custom HUD system for scripted maps, richer bomb and camera scripting APIs, and updates the official cs_script zoo example map to showcase the new tools.

Quick read

  • Experimental `custom_hud_layout` entity and CustomHudLayout API let scripts drive simple HUDs with buttons, classes, and dialog variables.
  • New script hooks around bomb planting/defusing, C4 control, movement types, and a promise-based `Instance.Delay` improve custom game logic.
  • The cs_script zoo example map gains a scripted welcome dialog using the new HUD system and migrates its chess mini-game to the built-in delay helper.
  • Engine schemas, user messages, and tooling are updated to support CustomHudClicked events and per-player custom HUD state networking.

A new CS2 update quietly introduces an experimental system for map‑scripted custom HUDs, plus new scripting tools around the bomb and player cameras – all showcased in the official cs_script “zoo” example map.

Experimental custom HUD layouts for scripted maps

  • New custom_hud_layout entity: Hammer now exposes a custom_hud_layout point entity in csgo.fgd. This lets map authors provide a Panorama XML layout that can be controlled from cs_script.
  • Supported UI elements: The new scripting API documents that custom layouts can contain basic panels:
    • Panel with id, class, hittest
    • Label with id, class, hittest, text
    • Image with id, class, hittest, src, texturewidth, textureheight
    • Button with id, class Styling via CSS is supported; client‑side JS in the HUD itself is not.
  • Server‑driven visual state: Scripts can now:
    • Toggle CSS classes on panels globally or per player with CustomHudLayout.SetHasClass / SetHasClassForPlayer.
    • Set per‑panel dialog variables (text tokens) globally or per player with SetDialogVariableString / SetDialogVariableStringForPlayer. This suggests creators can drive things like "quest" prompts, timers, or state indicators purely from server logic.
  • Input capture from HUD: CustomHudLayout.SetInputCaptureEnabled(playerSlot, enabled) gives maps a way to temporarily grab a player’s mouse for UI interaction. IsInputCaptureEnabled reports whether a layout is currently capturing input. While enabled, players may lose normal movement/mouse control until all capturing layouts release it.
  • Click events wired into user messages: A new user message CS_UM_CustomHudClicked and the script callback Instance.OnCustomHudClicked are added. When a player clicks a button in a CustomHudLayout, the server receives which layout and buttonId were clicked. This may allow maps to implement menus, dialogs, or mini‑game controls fully server‑side.
  • HUD backing layouts in Panorama: Two new Panorama layout files (hud/customhuds.xml and hud/infohudlayouts.xml) appear to host the engine’s side of these custom layouts. These are internal scaffolding; players likely won’t see a new default HUD from them directly, but they underpin the new scripted HUD feature.
  • Experimental warning: The API is explicitly labeled @experimental and notes that breaking changes may happen. Authors building serious projects on it should expect possible adjustments in future builds.

Scripting upgrades for bombs, cameras, and movement

Updates to content/csgo/maps/editor/zoo/scripts/point_script.d.ts expand what cs_script can do on custom or community maps:

  • Promise‑based timing helper:
    • Instance.Delay(delay: number): Promise<void> is now available as a built‑in async delay. This replaces the hand‑rolled think queue in the zoo chess script and simplifies long‑running scripted sequences.
  • More detailed bomb lifecycle events:
    • New callbacks split bomb interactions into start/abort/finish phases:
      • OnBombPlantStart, OnBombPlantAbort, OnBombPlant
      • OnBombDefuseStart, OnBombDefuseAbort, OnBombDefuse, plus OnBombExplode
    • New BombPlantEvent and BombDefuseEvent types are introduced, with some fields marked as deprecated for future cleanup. This should let scripted maps or mods react more precisely to partial plant/defuse actions – for example, tutorial overlays or custom win conditions.
  • C4 weapon API:
    • New C4 script class (extending CSWeaponBase) includes:
      • GetPlantStartTime() / GetPlantFinishTime()
      • AbortPlant()
    • CSPlayerPawn can now surface GetC4() to retrieve a player’s C4 weapon, and GetDefuseTarget() to access the planted bomb they’re defusing. These tools appear aimed at more advanced bomb‑oriented training maps or game modes.
  • Player state and UI hooks:
    • CSPlayerPawn.IsBuyMenuOpen() lets scripts know when a player is in the buy menu.
    • CSPlayerPawn.GetCamera() exposes a CSPlayerCamera entity for each player.
  • New camera control entity:
    • CSPlayerCamera is a new experimental scriptable entity representing a player’s view.
    • Scripts can enable/disable it and call SetIsControllingAngles(controlling: boolean). When not controlling angles, the player can look around freely from the camera position. This may lead to more polished scripted cameras for cutscenes, replays, or training views.
  • Movement and interpolation helpers:
    • New CSMoveType enum lets scripts inspect or change how an entity moves (walk, fly, noclip, ladder, etc.) via GetMoveType() and SetMoveType().
    • Move({...}) is added as a sibling to Teleport, described as moving an entity without resetting the client’s interpolation history. This likely allows smoother visual repositioning for scripted moving objects.
  • Utility additions and type refinements:
    • Instance.IsDedicatedServer() helps scripts branch between listen and dedicated servers.
    • Several event fields (OnPlayerChat, OnBulletImpact, ModifyPlayerDamageEvent.inflictor, etc.) are relaxed to be optional (?), making scripts more robust to cases where no entity is present.

These scripting additions are all surfaced through the official type definitions used by map authors, so they are intended to be used in custom content and should work in practice, not just in Valve’s internal examples.

Zoo example map: scripted welcome dialog and cleaner chess logic

Valve’s editor/zoo example map for cs_script has been expanded to demonstrate the new HUD and timing APIs.

  • New welcome popup UI:
    • A Panorama layout welcome.xml and welcome.css define a simple centered dialog:
      • Text: “Welcome to the cs_script zoo map!”
      • A Dismiss button
      • A Dismissed CSS class that fades the dialog out by setting its opacity to zero.
    • When a player spawns (OnPlayerActivate), ShowWelcome(playerSlot) is called:
      • It clears the Dismissed class for that player so the dialog appears.
      • It enables input capture with SetInputCaptureEnabled, so the player can click the dialog button.
    • Instance.OnCustomHudClicked listens for click events:
      • If the clicked layout is the welcome_layout and buttonId is dismiss_button, HideWelcome adds Dismissed back and disables input capture, returning control to the player.
    • A debug/cheat command script_zoo_show_welcome loops all players and shows the dialog again, illustrating how map authors can re‑trigger custom HUD flows on demand.
  • Chess script migrated to Instance.Delay:
    • The chess mini‑game script previously implemented its own timing queue and Delay() helper based on Instance.SetNextThink.
    • That custom queue and Delay implementation have been fully removed.
    • All async waits (e.g. within RunChess, piece slide animations, piece death animations, and the AI’s minimax search throttling) now use await Instance.Delay(0). This shows how the new built‑in delay API is meant to simplify long‑running async gameplay logic.

Players exploring the zoo map after this update should see a small welcome window on first spawn, demonstrating exactly how custom HUD layouts can look and behave.

Engine and protocol plumbing behind the new HUD tools

While not directly visible in normal gameplay, a number of engine‑level and schema updates support the new HUD features:

  • Custom HUD networking structures:
    • New schema types (CCSCustomHudLayout, CCSCustomHudLayoutState, HUDPanelHasClass_t, HUDPanelDialogVariableString_t, and EHudPanelClassStatus_t) appear on both client and server. These cover:
      • The layout resource name.
      • Per‑player and global layout state (which classes and dialog variables are applied to which panels).
      • Whether a layout is capturing input for a given player.
  • Player camera entity:
    • CCSPlayerCamera is added on client and server, with fields linking it to a pawn handle and booleans tracking whether it is enabled and whether it is controlling the player’s aim.
  • User message and enum wiring:
    • The ECstrike15UserMessages enum gains CS_UM_CustomHudClicked = 390, tying the new HUD click notification into the existing user message pipeline.
    • A corresponding CCSUsrMsg_CustomHudClicked protocol message carries a layout identifier and button ID to the server.
  • Toolchain and string updates:
    • Various internal tools and string tables (server, client, Panorama, VScript, resource compiler, etc.) are refreshed. Among them are new HUD‑related string structures (HUDPanelHasClass_t, dialog variable vectors, etc.) and updated V8 scripting support.
    • These changes are mostly under‑the‑hood and are unlikely to affect players directly but are necessary for the new scripting features to function reliably.

Overall impact

This update is focused on creators and scripters rather than core competitive gameplay:

  • Map authors gain an experimental, officially supported way to build simple interactive HUDs driven from cs_script, including per‑player state, click handling, and input capture.
  • Bomb‑related scripting hooks become significantly richer, which may benefit training maps, tutorials, or custom modes centered on planting and defusing.
  • The new CSPlayerCamera, movement helpers, and promise‑based delay API should make advanced scripted experiences (custom cameras, minigames, smoother moving entities) easier to implement.

For most players in standard matchmaking, the immediate impact will be subtle. Over time, though, these tools may lead to more polished custom maps, better training utilities, and more creative community game modes built on CS2’s scripting system.

Back to updates

Recent updates

Official updateNov 19, 2026, 12:57 AM UTC

Counter-Strike 2 Update (Nov 19, 2026)

Map fixes for Cobblestone and Inferno, AWP reload animation update, visual optimization, and an X‑Ray Scanner change for players in Switzerland.

  • Cobblestone: multiple fixes including walkable ledges in long A, empty skybox, audio blocker by mid/A, grenade clip on assault van bumper, and various world gaps.
  • Inferno: fixed grenade and Molotov exploit spot from church to dark on bombsite B.
  • Updated slow reload animation for the `AWP`.
  • Optimized ground burn decals under smoke on very high graphics settings.
  • Players in Switzerland receive an `X-Ray Scanner` tab in their `Inventory`; containers there can only be opened via the scanner, which is preloaded with a one-time exclusive non-tradable `Genuine P250 | X-Ray` that must
  • title
View details
Official updateNov 17, 2026, 11:40 PM UTC

Counter-Strike 2 Update (Nov 17, 2026)

PGL Singapore Major Hub and Viewer Pass; Cobblestone added to matchmaking; new Monstercat music kits; gameplay, AI, and visual fixes.

  • PGL Singapore 2026 Major Hub is available with tournament items and the Pick'Em Challenge.
  • Singapore 2026 Viewer Pass grants an upgradable Singapore 2026 Coin, Pick'Em rewards, and Active Pass Leaderboard presence.
  • Cobblestone added to official Casual, Competitive, Wingman, Retakes, and Deathmatch matchmaking.
  • Boulder, Fachwerk, and Shelter removed from the official matchmaking pool.
  • Eight new music kits from Monstercat added; MVP Anthem preview button added when inspecting Music Kits in the in-game store.
  • Gameplay and bot fixes include head-dipping correction, restored T-side lowered aim pose, defuse kit grant fix in Retakes, and T-side bots now attack CTs attempting defuses.
  • Engine and integration updates: custom processing for fire effects on ground materials and `health_c4_preview` output added to `player_state` for Game State Integration.
View details
Official updateNov 17, 2026, 11:38 PM UTC

The Cobbled Road to Singapore (Nov 17, 2026)

Cobblestone returns, Major Viewer Passes and tournament items are available, and eight new Monstercat music kits are released.

  • The legendary map `Cobblestone` returns with changes, new pathways and snowy environments.
  • `Cobblestone` is available in Competitive, Wingman, and its own map group in Casual, Deathmatch, and Retakes.
  • Major Viewer Passes, Team and Player Autograph stickers, and craftable souvenirs are available in the Major Shop; 50% of proceeds go to players, teams and the organizer.
  • Eight new Monstercat music kits are released, including tracks from Tristam & Braken and Noisestorm.
View details
CS2 Update (Aug 24, 2026) | CS2News.gg