Counter-Strike 2 Workshop Tools/Scripting: Difference between revisions
TheCreator (talk | contribs) (Placeholder links for scripting tutorials) |
TheCreator (talk | contribs) (Tidy up page a little and change second tutorial link) |
||
| Line 5: | Line 5: | ||
{{Update}} | {{Update}} | ||
{{cs2|1}} features the cs_script scripting system, using {{w|JavaScript}} | {{cs2|1}} features the cs_script scripting system, using {{w|JavaScript}}. This is in contrast to previous {{Source 2|1}} titles like {{hla|1}}, {{dota2|1}}, and {{VRHome|1}}, 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. | 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|Figure out more about pulse.}} | ||
| Line 17: | Line 15: | ||
== Tutorials == | == Tutorials == | ||
* '''[[Counter-Strike_2_Workshop_Tools/Scripting/Hello_Gordon|Hello, Gordon: Getting Started with JavaScript for Counter-Strike 2]]''' | * '''[[Counter-Strike_2_Workshop_Tools/Scripting/Hello_Gordon|Hello, Gordon: Getting Started with JavaScript for Counter-Strike 2]]''' | ||
* [[Counter-Strike_2_Workshop_Tools/Scripting/ | * [[Counter-Strike_2_Workshop_Tools/Scripting/Glowing_Chair|Creating a Glowing Chair with JavaScript in Counter-Strike 2]] | ||
== See also == | == See also == | ||
* [[Counter-Strike 2 Workshop Tools/Scripting API|Scripting API]] | * [[Counter-Strike 2 Workshop Tools/Scripting API|Scripting API]] | ||
Revision as of 07:24, 23 October 2025
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
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.
Tutorials
- Hello, Gordon: Getting Started with JavaScript for Counter-Strike 2
- Creating a Glowing Chair with JavaScript in Counter-Strike 2