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

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.
Remember to check for any notes left by the tagger at this article's talk page.
反恐精英2 提供了 cs_script 脚本系统, 使用 JavaScript, 不像之前的 起源2 作品 半衰期:爱莉克斯,
Dota 2, SteamVR Home, 在
Hammer Editor 使用 VScript 来提供
Lua 等脚本语言的能力. 另外, 在 反恐精英2 中, 提供了另一种脚本系统, Pulse, 一种图形化脚本工具. 目前, Pulse 暂时不向终端用户开放. cs_script 可以被用于许多场景, 例如创建新的游戏模式, 武器, 以及复杂的游戏逻辑.
Valve 提供了地图 script_zoo, 用于展示 cs_script 创造多种独特的游戏体验的能力: 更换模型, 甚至是下国际象棋! 地图文件在 content/csgo/maps/editor/zoo, 控制台中输入"map editor/zoo/script_zoo"以进图体验.


教程
- Hello, Gordon: Getting Started with JavaScript for Counter-Strike 2
- Creating a Sliding Door with JavaScript in Counter-Strike 2