How avitran0/deadlocked works
• A core C++ module (found in the src, include, and lib directories) that implements the game-hacking features.
• A separate “radar” module (a Svelte–based UI built with TypeScript/Vite) that provides an in-game radar interface.
Main Components
a. Core Cheat Engine (C++):
– Modules under src such as cs2/aimbot.cpp, cs2/triggerbot.cpp, cs2/no_flash.cpp, etc.
– Header files in include (including cs2 subdirectory) reinforcing functionalities related to game memory interaction, aiming, ESP, and other hacks.
– Support libraries inside lib (e.g., glm, imgui, sdl) that provide the mathematical functions, GUI overlays, and windowing/input handling.
– Supporting scripts such as build.sh, run.sh, and run_debug.sh for build automation and execution.
b. Radar Module (Frontend):
– Resources and file structure under the “radar” directory, including package.json, svelte components (PlayerDot.svelte, Radar.svelte, etc.), and scripts (radar.js, run.sh).
– Configuration and build files (tsconfig.*, vite.config.ts) that hint at a modern frontend stack.
Component Relationships and Interactions
a. The core cheat engine interacts directly with the game’s process via memory reading and writing (using Linux-specific user permissions and system calls like process_vm_readv).
b. The core engine’s modules (aimbot, esp, triggerbot, etc.) communicate with each other via shared configurations (config files, constants, and headers) and via a main entry point in main.cpp.
c. The GUI and overlay components (using libraries like imgui and sdl) display game data and states derived from the core functionalities.
d. The radar module functions as an independent front-end, likely connecting to the core engine (either via shared memory, sockets, or file outputs) to display real-time game information on a map interface.
e. Build and configuration files (CMakeLists.txt, .clang-format, .clang-tidy) set up code standards and compile instructions, tying together both the core C++ modules and integration with external libraries.
Architectural Patterns and Design Principles
a. Separation of Concerns:
– Distinct subsystems for gameplay manipulation (C++ core) versus user interface overlays (radar module).
– Configurations, utilities, and shared constants are separated in dedicated directories and header files.
b. Modular Design:
– The cs2 folder categorizes game-specific hacks (aimbot, triggerbot, fov changer) to avoid cross-contamination of logic.
– The radar module is self-contained, with its own build configuration and dependency management (Node/TypeScript ecosystem).
c. Layered Architecture:
– The lower layer (core engine) directly interfaces with the game’s process.
– A middle layer (GUI and overlays) abstracts the display and input management.
– The radar module appears to represent either an auxiliary or complementary subsystem for enhanced visualization.
d. Dependency Management and Integration:
– Use of CMake for C++ builds and Vite for the radar frontend suggests clearly defined build pipelines.
– Integration with external libraries (SDL, imgui, glm) is central to both performance (rendering overlays) and mathematical support.