Code Monkey home page Code Monkey logo

2ct's Introduction


2-condition-triggerbot

A hardware aimbot for Valorant using Kmbox

English | Tiếng Việt | **人 | 한국인 | 日本語

About

The "2-condition-triggerbot" project is an educational tool designed to demonstrate the principles of screen capture and image processing in a gaming context. This bot is specifically tailored for the popular FPS game, Valorant. It automates the process of detecting targets and shooting by using color recognition techniques.

Key Features:

  • Configurable Settings: Easily customize the bot’s behavior through the config.json file, including network settings, color tolerance, and delay parameters.

  • Real-time Screen Capture: Utilizes mss for efficient screen capture of a small zone around the crosshair to minimize performance impact.

  • Color Detection: Detects the presence of specific target and scope colors within the capture zone to determine when to shoot.

  • Adjustable Trigger Delay: Fine-tune the bot’s shooting speed with adjustable delay settings to match different game requirements.

  • Keyboard Controls: Control the bot with simple hotkeys:

How It Works:

  • Initialization: The bot initializes by loading the configuration, setting up network communication with kmBox, and defining the screen capture zone.

  • Screen Capture and Processing: Continuously captures a small portion of the screen around the crosshair, checking for specific colors that indicate a target or scoped-in state.

  • Trigger Mechanism: When both conditions (target detected and scoped-in) are met, the bot simulates a mouse click to shoot, with a customizable delay to mimic human reaction times.

  • Keyboard Listener: Runs in a separate thread to allow the user to pause, reload the configuration, or exit the program using predefined hotkeys.

Important Note:

This tool is intended for educational purposes only to showcase how screen capture and color detection can be implemented in a programming project. Using such tools in online games like Valorant is against the terms of service and can result in penalties, including permanent bans. Use this bot at your own risk, and always consider the ethical implications and potential consequences of using cheats in online games.

Getting Started

Prerequisites

  • KmBox library (available as KmNet.pyd in the source)
  • Python 3.11
  • Kmbox Net version. Set up kmboxNet
http://www.kmbox.top/wiki_doc/kmboxNet/site/#_1

The firmware for kmbox must be at least from May 18th 2024 or above!!!

  • 2 PCs setup (optional)
    • You can use Capture card or Moonlight streaming

Installation

Clone the repository from GitHub:

git clone https://github.com/ozymotv/2CT.git

Install required Python packages:

pip install -r requirements.txt

Running the Program

  1. Navigate to the project directory:
cd 2CT
  1. Edit the config.json file:
{
  "ip": "192.168.2.188", 
  "port": "16896",  
  "uid": "46405C53",  
  "trigger_delay": 0,  
  "base_delay": 0,  
  "color_tolerance": 40, 
  "target_color": [250, 100, 250], 
  "scope_color": [0, 255, 0],
  "scope_color_tolerance": 40, 
  "scope_color_alt": [0, 255, 255], 
  "scope_color_tolerance_alt": 40 
}
  1. Adjust crosshair colors:
  • Primary crosshair: Cyan
  • Aimdownsight and Sniper: Green

Screenshot (1) Screenshot (2) Screenshot (3)

Turn on "Movement error", "Firing error", multiplier to 3 times

4.Run the program:

python run.py
  1. Keyboard Shortcuts:
  • F2: Exit
  • F3: Pause/unpause
  • F4: Reload config

Xmousebutton2 for alternate trigger mode

Screenshot 2024-06-24 222638

Contribution

Feel free to submit any improvement, I will credit you.

Authors

Ozymo

Contact:

ozymotv ozymo ozymotv ozymotv

Support:

ozymotvz ozymotv



License

This project is licensed under the GPL 3.0 License - see the LICENSE file for details

2ct's People

Contributors

ozymotv avatar

Stargazers

GodGavin avatar  avatar Rubi avatar  avatar  avatar  avatar  avatar alexjoneso avatar  avatar

Watchers

 avatar

2ct's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.