Skip to content
ItsJesewe edited this page Oct 19, 2024 · 4 revisions

CS2 TriggerBot

CS2 TriggerBot is an open-source Python tool designed for Counter-Strike 2. It offers automatic trigger actions based on the player's surroundings, providing competitive advantages such as automatic firing when an enemy enters the crosshair. This project is built on top of Pymem for memory manipulation and pynput for controlling mouse inputs.

Features

  • Automated Triggerbot: Fires automatically when an enemy is under the crosshair.
  • Adjustable Shot Delays: Configurable shot delay between trigger activations.
  • Configurable Trigger Key: Assign any mouse button or keyboard key as the trigger key.
  • Selective Fire on Teammates: Option to disable or enable firing on teammates.
  • Automatic Game Process Detection: Attaches to the cs2.exe process for real-time trigger actions.
  • Customizable Settings: Easy configuration via config.ini to adjust various parameters like trigger key, shot delay, and logging levels.
  • Update Checker: Notifies users of new versions and updates available via the GitHub repository.
  • Logging System: Logs all activity and errors to help with debugging and tracking issues.

Setup and Installation

Prerequisites

  • Python 3.6+
  • The following Python libraries:
    • pymem
    • pynput
    • requests
    • colorama
    • packaging
    • pywin32
    • keyboard
    • configparser

Install the required dependencies using the following command:

pip install -r requirements.txt

Configuration

  1. Trigger Key: You can configure the trigger key and other options in the config.ini file, which is auto-generated if it does not exist.
  2. Shot Delay: The bot supports customizable shot delay (between minimum and maximum values) to prevent detection by anti-cheat systems.
  3. Attack Teammates: Enable or disable attacking teammates by setting AttackOnTeammates in config.ini.

Running the Bot

  1. Launch Counter-Strike 2.
  2. Run the CS2TriggerBot.py script:
    python CS2TriggerBot.py
  3. The bot will automatically attach to the cs2.exe process and start working once you press the configured trigger key.

Logs

Logs are saved to %LOCALAPPDATA%\Requests\ItsJesewe\crashes\tb_logs.log. You can view detailed log messages for debugging purposes.

Contributing

We welcome contributions to improve this project! You can:

  • Report bugs or request features in the Issues section.
  • Fork the repository and submit a pull request for new features or bug fixes.

Troubleshooting

  • Game not detected: Ensure the game cs2.exe is running before launching the bot.
  • Offsets not fetched: If offsets or client data fail to load, check your internet connection or retry after some time.
  • Trigger not firing: Double-check the configuration file for the correct trigger key and ensure the game window is active.

For more troubleshooting, visit the Issues section.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Clone this wiki locally