A simple CS2 typescript script boilerplate to get you started quickly.
- Clone the repository or download the ZIP file and extract it.
- Navigate to the project directory.
- Run
npm install
to install the dependencies. - Run
npm start
to start the watch server.
You can change the output file name and path in the rollup.config.js
file. By default, it is set to build/index.js
but you can modify it to an absolute path of your cs2 addon to automatically copy the output file there and hotreload it in-game.