This article relates to the game "Counter-Strike 2". Click here for more information.
This article relates to the software/tool "Counter-Strike 2 Workshop Tools". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Scripting

From Valve Developer Community
Jump to navigation Jump to search

English (en)中文 (zh)Translate (Translate)
Broom icon.png
This article or section needs to be updated to include current information regarding the subject.
Remember to check for any notes left by the tagger at this article's talk page.

Counter-Strike 2 features the cs_script scripting system, using Wikipedia icon JavaScript. This is in contrast to previous Source 2 titles like Half-Life: Alyx, Dota 2, and SteamVR Home, which all used Lua-based VScript. In addition to cs_script, there is another scripting system called Pulse, which is a visual scripting solution. However, Pulse is currently unavailable to end users. cs_script can be used for a variety of things including creating new game modes, modifying existing weapon logic, among other stuff.

Valve has provided a map called script_zoo, which showcases various ways to use cs_script to create unique gameplay, model changes and even chess in Counter-Strike! The .vmap file can be found in content/csgo/maps/editor/zoo. It can also be accessed in-game, by typing "map editor/zoo/script_zoo" into the game console.

Todo: Figure out more about pulse.
Todo: Info about JavaScript.
Confirm:Does TypeScript (.vts) still work using point_script?

Tutorials

See also