← All patch guides

Counter-Strike 2 Update: patch history

• Added custom_hud_layout entity:

Patch history

Counter-Strike 2 Update: • Added custom_hud_layout entity: Counter-Strike 2 Update: • custom_hud_layouts are the entry point for scripted maps to provide custom UI. Counter-Strike 2 Update: • Panel, Label, Image, and Button panel types are supported. Counter-Strike 2 Update: • Styling with css is supported. Counter-Strike 2 Update: • Events and client side scripting are not supported. Counter-Strike 2 Update: • Maintains state during tools mode reloads. Counter-Strike 2 Update: • Added cs_player_camera entity: Counter-Strike 2 Update: • Gives control of a player's view without moving their pawn. Counter-Strike 2 Update: • Can be configured to let the player look around from the scripted position. Counter-Strike 2 Update: • Added Instance.OnBombPlantStart Counter-Strike 2 Update: • Added Instance.OnBombPlantAbort Counter-Strike 2 Update: • Added Instance.OnBombDefuseStart Counter-Strike 2 Update: • Added Instance.OnBombDefuseAbort Counter-Strike 2 Update: • Added Instance.OnCustomHudClicked Counter-Strike 2 Update: • Added Instance.IsDedicatedServer Counter-Strike 2 Update: • Added CSPlayerPawn.GetDefuseTarget Counter-Strike 2 Update: • Added CSPlayerPawn.IsBuyMenuOpen Counter-Strike 2 Update: • Added CustomHudLayout.SetHasClass Counter-Strike 2 Update: • Added CustomHudLayout.SetHasClassForPlayer Counter-Strike 2 Update: • Added CustomHudLayout.SetDialogVariableString Counter-Strike 2 Update: • Added CustomHudLayout.SetDialogVariableStringForPlayer Counter-Strike 2 Update: • Added CustomHudLayout.SetInputCaptureEnabled Counter-Strike 2 Update: • Added CustomHudLayout.IsInputCaptureEnabled Counter-Strike 2 Update: • Added CSPlayerCamera.IsEnabled Counter-Strike 2 Update: • Added CSPlayerCamera.SetEnabled Counter-Strike 2 Update: • Added CSPlayerCamera.SetIsControllingAngles Counter-Strike 2 Update: • Corrected types for some events where parameters were maybe undefined.

Source details

Counter-Strike 2 Update: • Errors encountered during initial script run are now logged to the console. Counter-Strike 2 Update: • Unhandled promise rejections are now logged to the console. Counter-Strike 2 Update: • Added the column number to errors caught during the CompileModule step of script loading. Counter-Strike 2 Update: • Deprecated planter from Instance.OnBombPlant event Counter-Strike 2 Update: • Deprecated defuser from Instance.OnBombDefuse event Counter-Strike 2 Update: • Updated to the latest version from the Community Workshop (Update Notes) Counter-Strike 2 Update: • Fixed a case where player speed was too high when moving against walls. Counter-Strike 2 Update: • Fixed a case where grenades could be thrown through level geometry Counter-Strike 2 Update: • Fixed collision in various spots across map Counter-Strike 2 Update: • Fixed flickering on some assets Counter-Strike 2 Update: • Removed boost spot in Outside A Counter-Strike 2 Update: • Added Instance.SpawnGrenadeProjectile Counter-Strike 2 Update: • Added dropper to Instance.OnWeaponDrop event Counter-Strike 2 Update: • Added hitEntity to Instance.OnGrenadeBounce event Counter-Strike 2 Update: • Added normal to Instance.OnGrenadeBounce event Counter-Strike 2 Update: • Added CSGrenadeProjectileBase.GetGrenadeType Counter-Strike 2 Update: • Added CSGrenadeProjectileBase.GetThrower Counter-Strike 2 Update: • Added CSGrenadeProjectileBase.Detonate Counter-Strike 2 Update: • Added CSPlantedC4.GetPlantTime Counter-Strike 2 Update: • Added CSPlantedC4.GetExplodeTime Counter-Strike 2 Update: • Added CSPlantedC4.GetDefuseStartTime Counter-Strike 2 Update: • Added CSPlantedC4.GetDefuseFinishTime Counter-Strike 2 Update: • Added CSPlayerPawn.SetHasDefuser Counter-Strike 2 Update: • Fixed a bug where Instance.RegisterCheatCommand would not work on script reload. Counter-Strike 2 Update: • Deprecated bounces from Instance.OnGrenadeBounce event.