Skip to content

SunOner/sunone_aimbot_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunone Aimbot C++

C++ License MIT GitHub stars Discord server

  • This project is actively being developed thanks to the people who support on Boosty and Patreon. By providing active support, you receive enhanced AI models.

⚠️ WARNING: TensorRT version 10 does not support the Pascal architecture (10 series graphics cards). Use only with GPUs of at least the 20 series.

How to Use

  1. Download CUDA

  2. Download the Latest Release

    • Download the latest release from here (v2.7).
  3. Unpack Aimbot

    • Extract the contents of the Aimbot.
  4. First Launch and Model Export

    • Run ai.exe and wait until the standard .onnx model is exported, usually taking no more than two minutes.
    • To export another model, simply place it in .onnx format in the models folder. Then, in the AI tab, select this model, and it will be exported automatically.
  5. Settings

    • After successfully exporting the model, you can configure the program.
    • All settings are available in the overlay (default key is Home).
    • A list of settings can be found in the config documentation.
  6. Controls

    • Right Mouse Button: Aim at the detected target.
    • F2: Exit the program.
    • F3: Activate pause for aiming.
    • F4: Reload config.
    • Home: Show overlay.

🛠 Build the Project from Source

ℹ️ NOTE: This guide is intended for advanced users. If you encounter errors while building the modules, please report them on the Discord server.

  1. Install Visual Studio 2019 Community
    Download and install from the official website.

  2. Install Windows SDK
    Ensure you have Windows SDK version 10.0.26100.0 installed.

  3. Install CUDA and cuDNN

  4. Set Up Project Structure
    Create a folder named modules in the directory sunone_aimbot_cpp/sunone_aimbot_cpp/modules.

  5. Build OpenCV with CUDA Support

    • Download and install CMake and CUDA 12.4.
    • Download OpenCV.
    • Download OpenCV Contrib.
    • Create new directories: sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/ and sunone_aimbot_cpp/modules/opencv/build.
    • Extract opencv-4.10.0 to sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/opencv-4.10.0 and opencv_contrib-4.10.0 to sunone_aimbot_cpp/modules/opencv/opencv_contrib-4.10.0.
    • Extract cuDNN to sunone_aimbot_cpp/sunone_aimbot_cpp/modules/cudnn.
    • Open CMake and set the source code location to sunone_aimbot_cpp/modules/opencv/opencv-4.10.0.
    • Set the build directory to sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/build.
    • Click Configure.
    • (Some options will appear after the next configuration application. For example, to configure the CUDNN_LIBRARY paths, you first need to activate the WITH_CUDA option and click configure.)
    • Check or configure:
      • WITH_CUDA

      • WITH_CUBLAS

      • ENABLE_FAST_MATH

      • CUDA_FAST_MATH

      • WITH_CUDNN

      • CUDNN_LIBRARY = <full path>sunone_aimbot_cpp/sunone_aimbot_cpp/modules/cudnn/lib/x64/cudnn.lib

      • CUDNN_INCLUDE_DIR = <full path>sunone_aimbot_cpp/sunone_aimbot_cpp/modules/cudnn/include

      • CUDA_ARCH_BIN = Visit the CUDA Wiki to find your Nvidia GPU architecture. For example, for RTX 3080ti, enter 8.6.

      • OPENCV_DNN_CUDA

      • OPENCV_EXTRA_MODULES_PATH = <full path>sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/opencv_contrib-4.10.0/modules

      • BUILD_opencv_world

      • Uncheck:

        • WITH_NVCUVENC
        • WITH_NVCUVID
    • Click Configure again and ensure that the flags for CUDA_FAST_MATH and ENABLE_FAST_MATH are not reset.
    • Click Generate to build the C++ solution.
    • Close CMake and open sunone_aimbot_cpp/modules/opencv/build/OpenCV.sln, or click Open Project in cmake.
    • Switch the build configuration to x64 and Release.
    • Open the CMakeTargets folder in the solution.
    • Right-click on ALL_BUILD and select Build. (Building the project can take up to two hours.)
    • After building, right-click on INSTALL and select Build.
    • Verify the built files exist in the following folders:
      • sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/build/install/include/opencv2 - Contains .hpp and .h files.
      • sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/build/install/x64/vc16/bin - Contains .dll files.
      • sunone_aimbot_cpp/sunone_aimbot_cpp/modules/opencv/build/install/x64/vc16/lib - Contains .lib files.
  6. Download Required Libraries

  7. Extract Libraries
    Extract the downloaded libraries into the respective directories:

    • sunone_aimbot_cpp/sunone_aimbot_cpp/modules/boost_1_82_0
    • sunone_aimbot_cpp/sunone_aimbot_cpp/modules/TensorRT-10.6.0.26
  8. Compile Boost Libraries

    • Navigate to the Boost directory:
       cd sunone_aimbot_cpp/sunone_aimbot_cpp/modules/boost_1_82_0
    • Run the bootstrap script (from PowerShell):
       bootstrap.bat vc142
    • After successful bootstrapping, build Boost:
       b2.exe --build-type=complete link=static runtime-link=static threading=multi variant=release
  9. Download GLFW binaries (v3.4)

  10. Configure Project Settings

    • Open the project in Visual Studio.
    • Ensure all library paths are correctly set in Project Properties under Library Directories.
    • Go to NuGet packages and install Microsoft.Windows.CppWinRT.
  11. Verify CUDA Integration

    • Right-click on the project in Visual Studio.
    • Navigate to Build Dependencies > Build Customizations.
    • Ensure that CUDA 12.4 (.targets, .props) is included.
  12. Build the Project

    • Switch the build configuration to Release.
    • Build the project by selecting Build > Build Solution.

Old releases

📋 Config Documentation

  • The config documentation is available in a separate repository.

📚 References

📄 Licenses

Boost

OpenCV

ImGui