This article relates to the game "反恐精英2". Click here for more information.
This article relates to the software/tool "反恐精英2 创意工坊工具集". Click here for more information.
这篇条目有关 Source 2引擎。如需详情,点击这里。

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

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{subst:#if: Translation of 'Counter-Strike 2 Workshop Tools/Scripting' to '中文' via Template:LanguageBar buttons * * * * * * * * * * * * * * * * * * * * * * * * * * * *...")
 
No edit summary
Line 1: Line 1:
{{subst:#if:|||{{LAuto/t}}
--- DON'T JUST BLINDLY DELETE THIS PART. DO REPLACE THE LINKS AND CATEGORIES. THE PICTURE SHOWS HOW TO USE IT ! ---
SEARCH FOR:
\[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]
REPLACE WITH:
{{subst:LAuto|$1$2}}
}}{{wip}}{{translating}}
{{cs2 tools topicons}}
{{cs2 tools topicons}}


{{LanguageBar|title=Scripting}}
{{LanguageBar|title=脚本}}


{{Update}}
{{Update}}


{{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}} 提供了 cs_script 脚本系统, 使用 {{w|JavaScript}}, 不像之前的 {{Source 2|1}} {{hla|1}}, {{dota2|1}}, {{VRHome|1}}, 在 {{hammer5|1|nt=4}} 使用 [[VScript]] 来提供 {{w|Lua}} 等脚本语言的能力. 另外, 在 {{cs2|1}} 中, 提供了另一种脚本系统, [[Pulse]], 一种图形化脚本工具. 目前, Pulse 暂时不向终端用户开放. cs_script 可以被用于许多场景, 例如创建新的游戏模式, 武器, 以及复杂的游戏逻辑.
 
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}}.}}
Valve 提供了地图 script_zoo, 用于展示 cs_script 创造多种独特的游戏体验的能力: 更换模型, 甚至是下国际象棋! 地图文件在 content/csgo/maps/editor/zoo, 控制台中输入"map editor/zoo/script_zoo"以进图体验.


{{Todo|Figure out more about pulse.}}
{{Note|截止 ''Limited Test Build v. 2000121/13936'', [[VScript]] 无法运行, [[Pulse]] 也无法用于终端用户, 但 CS2 的内部文件表明 Lua 曾用于搭档模式的配置, 同时也用于 {{CsgoMap|de_vertigo}} 上的各种交互.}}
{{Todo|Info about JavaScript.}}
{{Confirm|Does TypeScript (.vts) still work using [[point_script]]?}}


== Tutorials ==
== Tutorials ==

Revision as of 05:45, 3 October 2025

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.

反恐精英2 提供了 cs_script 脚本系统, 使用 Wikipedia icon JavaScript, 不像之前的 起源2 半衰期:爱莉克斯, Dota 2, SteamVR Home, 在 Hammer Editor 使用 VScript 来提供 Wikipedia icon Lua 等脚本语言的能力. 另外, 在 反恐精英2 中, 提供了另一种脚本系统, Pulse, 一种图形化脚本工具. 目前, Pulse 暂时不向终端用户开放. cs_script 可以被用于许多场景, 例如创建新的游戏模式, 武器, 以及复杂的游戏逻辑.

Valve 提供了地图 script_zoo, 用于展示 cs_script 创造多种独特的游戏体验的能力: 更换模型, 甚至是下国际象棋! 地图文件在 content/csgo/maps/editor/zoo, 控制台中输入"map editor/zoo/script_zoo"以进图体验.

Note.png注意:截止 Limited Test Build v. 2000121/13936, VScript 无法运行, Pulse 也无法用于终端用户, 但 CS2 的内部文件表明 Lua 曾用于搭档模式的配置, 同时也用于 de_vertigo de_vertigo 上的各种交互.

Tutorials

See also