403-Fruit / csctl

Scripting CS:GO over telnet.
GNU General Public License v3.0
61 stars 8 forks source link
counter-strike csgo source-engine

csctl

Scripting CS:GO over telnet.

Description

Execute cs:go commands from a file over telnet. This allows you to control execution timing and allows you to script usercmds (+left, +jump, etc.)

Tested on Python 3.7.4 but not extensively.

Big thanks to @nibalizer for this project, which was a huge help in figuring out how to interface with the client

Setup

git clone https://github.com/403-Fruit/csctl.git
cd csctl
pip3 install -r requirements.txt

Usage

Add the following launch option to CS:GO

-netconport 2121  

Run the script

python3 csctl.py

Then in-game you can run

echo exectn <instruction_file>

Or bind to a key with

bind "<key>" "echo exectn <instruction_file>"

This will execute commands from instruction_file, or if the line is delay x.x, sleep for x.x seconds.

Notes