SkillAgentSearch skills...

S2ts

A bundler for Counter Strike 2 that compiles TypeScript projects into .vts_c files for map and game mode creators.

Install / Use

/learn @Peterclark1996/S2ts
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Source 2 TypeScript

A counter strike 2 quick typescript project setup with bundler that automatically bundles all .ts typescript files.

[!IMPORTANT]
Now valve have officaily supported their JS interface, this project has been stripped back to a glorified typescript + rollup setup. This project is no longer needed, I would recommend setting up typescript and some bundler yourself, or using this boilerplate project https://github.com/Source2ZE/cs_script_boilerplate

Installation

Run npx create-s2ts@latest at the root of your map folder. The folder should be something like /Steam/steamapps/common/Counter-Strike Global Offensive/content/csgo_addons/<map-name>. This will setup a node project and create an example script.

npx create-s2ts@latest

Run the install.

npm install

Usage

Once installed you can run with the start command:

npm run start
  • While running, s2ts will look for any file updates to .ts files in your /scripts/vscripts folder and bundle them into a js file with no external dependencies so they can run in counter strike.

  • While the workshop tools are running, the bundled .js files in the build folder will be compiled and accessable in your point_script entity.

  • Documentation for Valves scripting API

Related Skills

View on GitHub
GitHub Stars44
CategoryDevelopment
Updated2d ago
Forks5

Languages

TypeScript

Security Score

95/100

Audited on Apr 7, 2026

No findings