Counter-Strike 2 Update
- custom_hud_layout entity for scripted maps to provide custom UI with support for Panel, Label, Image, and Button panel types
- CSS styling support for custom_hud_layout entities
- cs_player_camera entity to give control of a player's view without moving their pawn
- Instance.Delay function
- Instance.OnBombPlantStart event
- Instance.OnBombPlantAbort event
- Instance.OnBombDefuseStart event
- Instance.OnBombDefuseAbort event
- Instance.OnCustomHudClicked event
- Instance.IsDedicatedServer function
- Entity.Move function
- Entity.GetMoveType function
- Entity.SetMoveType function
- CSPlayerPawn.GetC4 function
- CSPlayerPawn.GetDefuseTarget function
- CSPlayerPawn.IsBuyMenuOpen function
- CSPlayerPawn.GetCamera function
- C4.GetPlantStartTime function
- C4.GetPlantFinishTime function
- C4.AbortPlant function
From Counter-Strike 2
[ MAP SCRIPTING ]
-
Added custom_hud_layout entity:
-
custom_hud_layouts are the entry point for scripted maps to provide custom UI.
-
Panel, Label, Image, and Button panel types are supported.
-
Styling with css is supported.
-
Events and client side scripting are not supported.
-
Maintains state during tools mode reloads.
-
Added cs_player_camera entity:
-
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 were maybe undefined.
-
Errors encountered during 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 CompileModule step of script loading.
-
Deprecated planter from Instance.OnBombPlant event
-
Deprecated defuser from Instance.OnBombDefuse event