CS2 TypeScript Converter is a tool for converting files from the .vts
format to .vts_c
. These files are TypeScript scripts that can be used in the game Counter-Strike 2 (CS2) to create custom logic for your maps.
- Automatically converts
.ts
or.vts
files to.vts_c
. - Real-time updates to game folder whenever changes are made.
- Simplifies map scripting with TypeScript.
- Place the path to your addon's
content
folder inside theconfig.json
file. - Launch the program.
- Create a
.ts
or.vts
file in thescripts
folder of your addon. - Modify the code in this file; the program will automatically generate and update corresponding files in the
game
folder.
To include a script in your CS2 map:
- Add an entity of class
point_script
to your map. - Set the
script
key to the path of your generated file. - Set the
targetname
key to the name of the entity.
Below is an example:
Explore an example addon that demonstrates how to use scripts with this program:
- Ensure your
config.json
file is correctly configured before starting the program. - The program monitors changes in your
.ts
or.vts
files and updates corresponding.vts_c
files in real-time.