# m-r-j-o-h-n/rust-external-cheat architecture

> Architecture diagram of the GitHub repository m-r-j-o-h-n/rust-external-cheat, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/m-r-j-o-h-n/rust-external-cheat
- Repository: https://github.com/m-r-j-o-h-n/rust-external-cheat

## Overview

Rust-External-Cheat is an external Rust game cheat. Its runtime starts an overlay, initializes shared state, then repeatedly coordinates entity updates, visual rendering, aiming, and miscellaneous weapon modifications. Entity discovery and object interpretation feed the display and gameplay features. The README documents ESP, FOV/head lock, and recoil/spread reduction; some implementation files were not sampled, so those feature details are represented without inferred internal call chains. GOM, menu, and settings are included as substantial modules, but their runtime wiring is not established by the excerpts.

Main entry points: [`Main.cpp`](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Main.cpp) (Runtime entry), [`CheatManager.cpp`](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatManager.cpp) (Feature coordinator), [`CheatStructs.cpp`](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatStructs.cpp) (Game object models), [`Visual.cpp`](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Visual.cpp) (ESP and visuals)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime orchestration"]
  node_entry["Runtime entry<br/>[Main.cpp]"]
  node_manager["Feature coordinator<br/>[CheatManager.cpp]"]
  node_menu["Menu interface<br/>[Menu.h]"]
end

subgraph group_entities["Entity data"]
  node_entity_update["Entity updater<br/>[EntityUpdator.cpp]"]
  node_object_data["Game object models<br/>[CheatStructs.cpp]"]
  node_object_manager["Game object manager<br/>[GOM.cpp]"]
  node_game_structs["Game structures<br/>[GameStructs.cpp]"]
  node_camera["Camera helpers<br/>[Helpers.cpp]"]
end

subgraph group_features["Cheat features"]
  node_visuals["ESP and visuals<br/>[Visual.cpp]"]
  node_aimbot["Aimbot<br/>[Aimbot.cpp]"]
  node_misc["Weapon modifications<br/>[Misc.cpp]"]
end

subgraph group_state["Shared state"]
  node_globals["Global runtime state<br/>[Globals.cpp]"]
  node_settings["Feature settings<br/>[HackSetting.h]"]
end

node_user(("User"))
node_game["Rust game process"]
node_overlay["Game overlay"]

node_user -->|"starts"| node_entry
node_entry -->|"initializes"| node_globals
node_entry -->|"executes"| node_manager
node_entry -->|"starts update threads"| node_entity_update
node_entry -->|"creates"| node_overlay
node_manager -->|"refreshes local state"| node_entity_update
node_manager -->|"draws"| node_visuals
node_manager -->|"executes"| node_aimbot
node_manager -->|"executes"| node_misc
node_visuals -->|"renders to"| node_overlay
node_object_data -->|"reads shared state"| node_globals
node_object_data -->|"uses"| node_game_structs
node_object_data -->|"gets camera position"| node_camera
node_visuals -->|"reads entity data"| node_globals

click node_entry "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Main.cpp"
click node_manager "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatManager.cpp"
click node_menu "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Menu.h"
click node_entity_update "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/EntityUpdator.cpp"
click node_object_data "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatStructs.cpp"
click node_object_manager "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/GOM.cpp"
click node_game_structs "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/GameStructs.cpp"
click node_camera "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Helpers.cpp"
click node_visuals "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Visual.cpp"
click node_aimbot "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Aimbot.cpp"
click node_misc "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Misc.cpp"
click node_globals "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Globals.cpp"
click node_settings "https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/HackSetting.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_manager,node_menu,node_user toneBlue
class node_entity_update,node_object_data,node_object_manager,node_game_structs,node_camera toneAmber
class node_visuals,node_aimbot,node_misc toneMint
class node_globals,node_settings toneRose
class node_game,node_overlay toneIndigo
```

## Components

### Runtime orchestration

- [Runtime entry](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Main.cpp): `Main.cpp`
- [Feature coordinator](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatManager.cpp): `CheatManager.cpp`
- [Menu interface](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Menu.h): `Menu.h`

### Entity data

- [Entity updater](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/EntityUpdator.cpp): `EntityUpdator.cpp`
- [Game object models](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/CheatStructs.cpp): `CheatStructs.cpp`
- [Game object manager](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/GOM.cpp): `GOM.cpp`
- [Game structures](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/GameStructs.cpp): `GameStructs.cpp`
- [Camera helpers](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Helpers.cpp): `Helpers.cpp`

### Cheat features

- [ESP and visuals](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Visual.cpp): `Visual.cpp`
- [Aimbot](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Aimbot.cpp): `Aimbot.cpp`
- [Weapon modifications](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Misc.cpp): `Misc.cpp`

### Shared state

- [Global runtime state](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/Globals.cpp): `Globals.cpp`
- [Feature settings](https://github.com/m-r-j-o-h-n/rust-external-cheat/blob/master/HackSetting.h): `HackSetting.h`

### Other components

- **User**
- **Rust game process**
- **Game overlay**

## Connections

- User → Runtime entry: starts (evidence: `Main.cpp`)
- Runtime entry → Global runtime state: initializes (evidence: `Main.cpp`)
- Runtime entry → Feature coordinator: executes (evidence: `Main.cpp`)
- Runtime entry → Entity updater: starts update threads (evidence: `Main.cpp`)
- Runtime entry → Game overlay: creates (evidence: `Main.cpp`)
- Feature coordinator → Entity updater: refreshes local state (evidence: `CheatManager.cpp`)
- Feature coordinator → ESP and visuals: draws (evidence: `CheatManager.cpp`)
- Feature coordinator → Aimbot: executes (evidence: `CheatManager.cpp`)
- Feature coordinator → Weapon modifications: executes (evidence: `CheatManager.cpp`)
- ESP and visuals → Game overlay: renders to (evidence: `Visual.cpp`)
- Game object models → Global runtime state: reads shared state (evidence: `CheatStructs.cpp`)
- Game object models → Game structures: uses (evidence: `CheatStructs.cpp`)
- Game object models → Camera helpers: gets camera position (evidence: `CheatStructs.cpp`)
- ESP and visuals → Global runtime state: reads entity data (evidence: `Visual.cpp`)
