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.

Counter-Strike 2 Workshop Tools/Scripting: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Include references to cs_script (previously VScript2?))
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


{{cs2|1}} features the cs_script scripting system, using {{w|JavaScript}}, unlike the previous {{Source 2|1}} titles {{hla|1}}, {{dota2|1}}, and {{VRHome|1}}, which all used [[VScript]] to provide the ability to use {{w|Lua}} scripts natively when building custom levels using the {{hammer5|1|nt=4}}. In addition to cs_script, there is another scripting system called [[Pulse]], which is visual scripting solution. Currently, Pulse is unavailable to end users. cs_script can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.
{{cs2|1}} features the cs_script scripting system, using {{w|JavaScript}}, unlike the previous {{Source 2|1}} titles {{hla|1}}, {{dota2|1}}, and {{VRHome|1}}, which all used [[VScript]] to provide the ability to use {{w|Lua}} scripts natively when building custom levels using the {{hammer5|1|nt=4}}. In addition to cs_script, there is another scripting system called [[Pulse]], which is visual scripting solution. Currently, Pulse is unavailable to end users. cs_script can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.
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.


{{Note|As of ''Limited Test Build v. 2000121/13936'', [[VScript]] is not working, and [[Pulse]] is unavailable for end users to create, but inspection of CS2's internal files confirms that Lua scripts previously used for configuration of the Wingman gamemode, as well as managing behavior of various interactive elements on {{CsgoMap|de_vertigo}}.}}
{{Note|As of ''Limited Test Build v. 2000121/13936'', [[VScript]] is not working, and [[Pulse]] is unavailable for end users to create, but inspection of CS2's internal files confirms that Lua scripts previously used for configuration of the Wingman gamemode, as well as managing behavior of various interactive elements on {{CsgoMap|de_vertigo}}.}}
Line 11: Line 13:
{{Todo|Figure out more about pulse.}}
{{Todo|Figure out more about pulse.}}
{{Todo|Info about JavaScript.}}
{{Todo|Info about JavaScript.}}
{{Confirm|Does TypeScript (.vts) still work using [[point_script]]?}}


== See also ==
== See also ==
* [[Counter-Strike 2 Workshop Tools/Scripting API|Scripting API]]
* [[Counter-Strike 2 Workshop Tools/Scripting API|Scripting API]]

Latest revision as of 10:06, 20 September 2025

English (en)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, unlike the previous Source 2 titles Half-Life: Alyx, Dota 2, and SteamVR Home, which all used VScript to provide the ability to use Wikipedia icon Lua scripts natively when building custom levels using the Hammer Editor. In addition to cs_script, there is another scripting system called Pulse, which is visual scripting solution. Currently, Pulse is unavailable to end users. cs_script can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.

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.

Note.pngNote:As of Limited Test Build v. 2000121/13936, VScript is not working, and Pulse is unavailable for end users to create, but inspection of CS2's internal files confirms that Lua scripts previously used for configuration of the Wingman gamemode, as well as managing behavior of various interactive elements on de_vertigo de_vertigo.
Todo: Figure out more about pulse.
Todo: Info about JavaScript.
Confirm:Does TypeScript (.vts) still work using point_script?

See also