Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gofish (a CS2 selfbot)

gofish is a somewhat simple python script to generate responses to commands by sending a keystroke which executes a config file ingame.

Features

  • !fish
    • Fishing minigame!

How it works

  1. The launch options below (-condebug -con_clearlog) tell CS2 to output the console logs to %SteamLibrary%/steamapps/common/Counter-Strike Global Offensive/game/csgo/console.log.
  2. main.py loops that file, through the CONSOLE_FILE variable in the .env file, and analyzes the latest lines for commands.
  3. When a comand is matched, it can do many things. But, to run commands in the game, it edits the EXEC_FILE, in the .env file, with the command it wants to run.
  4. The autoexec needs to have a line like bind "]" "exec selfbot.cfg" with that selfbot.cfg matching the EXEC_FILE variable. This allows the file that was edited to be run from in game with the ] key.
  5. Lastly, the python script 'virtually' presses that key (which should be set in the .env file as the EXEC_KEY variable) so that you don't have to do it.

Game Setup

  1. Add this to your Steam Launch Options for CS2: +exec autoexec.cfg -condebug -con_clearlog
  2. Add the following to your autoexec.cfg. Or you can add it like I have it in my autoexec.cfg.
bind "[" "say !fish"
bind "]" "exec selfbot.cfg"
log_flags InputService +donotecho // absolutely NEEDED due to CS2 having really fucking annoying limitations and the only way for me to send console commands is with "exec"
log_flags Prediction +donotecho
log_flags "CL CommandQueue" +donotecho

echo "selfbot initialized"

Requirements

Installing

  1. Install Python 3.11
  2. Install Poetry
  3. Clone the repo into a folder on your computer.
  4. Run cd galls inside of a terminal window.
  5. Run poetry install inside of a terminal window to install dependencies.
  6. Make a copy of .env.example and name it .env, edit it to contain the correct environment variables needed for the script to work.
  7. Run poetry run python main.py inside of the project directory.

Authors

  • Pandaptable
  • DeaFPS for letting me yoink her code and convert it to python... also making the fish database because fishbase is way too big.. ly loser <3

About

counter strike script

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages