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
(Changes by User:MaxDeVos moved here.)
 
No edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Source 2]]
{{cs2 tools topicons}}


Counter-Strike 2, like the previous {{Source 2|2}} titles {{hla|4}}, {{dota2|4}}, and {{VRHome|4}} uses the [[VScript]] scripting system based the [http://www.lua.org/manual/5.4/ Lua programming language]. In previous games, it provided the ability to use Lua scripts natively when building custom levels using the Hammer editor. In CS2 new scripts called ''Pulse'' used instead of Lua. They are triggered by [[point_pulse]] and can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.  
{{LanguageBar|title=Scripting}}
{{ModernNote |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 used for configuration of the Wingman gamemode, as well as managing behavior of various interactive elements on {{CsgoMap|de_vertigo}}.}}
 
{{Update}}
 
Unlike the previous {{Source 2|2}} titles {{hla|4}}, {{dota2|4}}, and {{VRHome|4}} which all used [[VScript]] to provide the ability to use Lua scripts natively when building custom levels using the Hammer editor. In {{cs2|4}} there are two scripting systems, one is aptly called [[VScript2]] which uses [https://en.wikipedia.org/wiki/TypeScript Typescript], and another called [[Pulse]] which is visual scripting solution. Both of which can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.
 
{{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}}.}}
 
{{Todo | Figure out more about pulse.}}
 
== See also ==
* [[Counter-Strike 2 Workshop Tools/Scripting API|Scripting API]]

Latest revision as of 11:20, 5 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.

Unlike the previous Source 2 Source 2 titles Half-Life: Alyx Half-Life: Alyx, Dota 2 Dota 2, and SteamVR Home SteamVR Home which all used VScript to provide the ability to use Lua scripts natively when building custom levels using the Hammer editor. In Counter-Strike 2 Counter-Strike 2 there are two scripting systems, one is aptly called VScript2 which uses Typescript, and another called Pulse which is visual scripting solution. Both of which can be used for a variety of things including creating new game modes, weapons and other types of complicated logic.

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.

See also