On the night of August 25, Valve released an update for Counter-Strike 2 that modified in-game scripts and added the ability to create unique user interfaces and camera setups for custom maps.
List of Changes
Map Scripts
- Added the `custom_hud_layout` entity, allowing players to create custom user interfaces on maps using scripts.
- Added the `cs_player_camera` entity, which provides control over the player’s field of view without moving the player model.
-
New scripts added:
- Instance.Delay;
- Instance.OnBombPlantStart;
- Instance.OnBombPlantAbort;
- Instance.OnBombDefuseStart;
- Instance.OnBombDefuseAbort;
- Instance.OnCustomHudClicked;
- Instance.IsDedicatedServer;
- Entity.Move;
- Entity.GetMoveType;
- Entity.SetMoveType;
- CSPlayerPawn.GetC4;
- CSPlayerPawn.GetDefuseTarget;
- CSPlayerPawn.IsBuyMenuOpen;
- CSPlayerPawn.GetCamera;
- C4.GetPlantStartTime;
- C4.GetPlantFinishTime;
- C4.AbortPlant;
- CustomHudLayout.SetHasClass;
- CustomHudLayout.SetHasClassForPlayer;
- CustomHudLayout.SetDialogVariableString;
- CustomHudLayout.SetDialogVariableStringForPlayer;
- CustomHudLayout.SetInputCaptureEnabled;
- CustomHudLayout.IsInputCaptureEnabled;
- CSPlayerCamera.IsEnabled;
- CSPlayerCamera.SetEnabled;
- CSPlayerCamera.SetIsControllingAngles;
- enum CSMoveType.
- Fixed the types for some events where parameters could be undefined.
- Errors that occur during the initial execution of a script are now logged to the console.
- Added a column number to errors detected during the CompileModule phase when loading a script.
- The `planter` parameter in the `Instance.OnBombPlant` event has been deprecated.
- The `defuser` parameter in the `Instance.OnBombDefuse` event is deprecated.
The previous Counter-Strike 2 update was released on August 20—at that time, Valve updated the Boulder and Poseidon maps from the community workshop and fixed a bug that caused increased movement speed when moving along walls.