Skip to content

Commit

Permalink
Add GUI interface & real-time config watcher
Browse files Browse the repository at this point in the history
Integrated a PyQt5-based GUI to provide easy control over bot settings such as Trigger Key, Shot Delay, and Attack Teammates option.
  • Loading branch information
Jesewe authored Oct 25, 2024
1 parent ae77da8 commit 4c28765
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 213 deletions.
37 changes: 11 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
---

# Overview
CS2 TriggerBot is an automated tool designed for Counter-Strike 2 that assists with precise aiming by automatically triggering a mouse click when an enemy is detected in the player's crosshairs.
CS2 TriggerBot is an automated tool designed for Counter-Strike 2 that assists with precise aiming by automatically triggering a mouse click when an enemy is detected in the player's crosshairs. The tool features a graphical user interface (GUI) for easy configuration.

## Features
- **Automatic Trigger**: Fires your weapon when an enemy is detected under your crosshair.
- **Configurable Trigger Key**: You can configure the trigger key through the `config.json` file.
- **Offsets and Client Data**: Fetches the latest offsets and client data automatically from remote sources.
- **Configurable Trigger Key**: Configure the trigger key through the `config.json` file or the in-app GUI.
- **Configurable Delays**: Set minimum and maximum shot delays for more natural shooting behavior.
- **Attack Teammates Option**: Toggle friendly fire with a checkbox in the GUI.
- **Offsets and Client Data**: Automatically fetches the latest offsets and client data from remote sources.
- **Logging**: Detailed logs are saved in `%LOCALAPPDATA%\Requests\ItsJesewe\crashes\tb_logs.log`.
- **Update Checker**: Automatically checks for updates from the GitHub repository.
- **GUI Interface**: Control the bot's behavior and configuration using the included graphical interface.
- **Dynamic Config Update**: Automatically detects and applies changes to the `config.json` file without restarting the bot.

## Installation

Expand Down Expand Up @@ -48,28 +52,8 @@ You can either install the triggerbot by cloning the repository or by downloadin

Alternatively, you can download the ready-to-use executable from the [Releases](https://github.com/Jesewe/cs2-triggerbot/releases) page. Simply download the latest version and run the executable directly.

## Obfuscating and Compiling
1. **Install Required Packages**
Ensure you have the necessary packages installed. Run the following command:
```bash
pip install pyinstaller pyarmor
```

2. **Generate Obfuscated Files**
Navigate to the directory containing all scripts:
```bash
cd cs2-triggerbot
```
Then run the following command to generate obfuscated files:
```bash
pyarmor gen --pack onefile main.py
```

3. **Rename the Output File**
After the obfuscation and compilation process, rename the resulting file located at `dist/main.exe` to your preferred name for use.

## Configuration
The `config.json` file is automatically generated in the directory `%LOCALAPPDATA%\Requests\ItsJesewe\` on the first run. You can modify the `TriggerKey` in this file to change the key that activates the bot. The default key is set to `x` (MOUSE 5).
The `config.json` file is automatically generated in the directory `%LOCALAPPDATA%\Requests\ItsJesewe\` on the first run. You can modify the `TriggerKey` in this file or via the GUI.

Example `config.json`:
```json
Expand All @@ -85,7 +69,8 @@ Example `config.json`:

## Usage
- Launch Counter-Strike 2.
- Run the TriggerBot using the command mentioned above.
- Run the TriggerBot using the command mentioned above or by launching the GUI version.
- Adjust settings like `Trigger Key`, `Shot Delay`, and `Attack Teammates` from the GUI.
- The bot will automatically start functioning when the game is active.

## Troubleshooting
Expand All @@ -94,7 +79,7 @@ Example `config.json`:
- **Unexpected Errors:** Check the log file located in the log directory for more details.

## Upcoming Features
We are actively working on several new features for the CS2 Triggerbot. For a detailed list of upcoming enhancements and improvements, please check the following GitHub issue: [Upcoming Features](https://github.com/Jesewe/cs2-triggerbot/issues/9).
We are actively working on several new features for the CS2 Triggerbot. For a detailed list of upcoming enhancements and improvements, please check the following GitHub Discussions: [Upcoming Features](https://github.com/Jesewe/cs2-triggerbot/discussions/categories/ideas).

## Contributing
Contributions are welcome! Please open an issue or submit a pull request on the [GitHub repository](https://github.com/Jesewe/cs2-triggerbot).
Expand Down
Loading

0 comments on commit 4c28765

Please sign in to comment.