# oneshotgh/supremacy architecture

> Architecture diagram of the GitHub repository oneshotgh/supremacy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/oneshotgh/supremacy
- Repository: https://github.com/oneshotgh/supremacy

## Overview

Supremacy is a Counter-Strike: Global Offensive cheat. The visible runtime workflow intercepts game callbacks, processes player commands through client-side features, and renders visual modifications and overlays; the README also identifies the in-game menu as a major capability. The graph reflects only relationships shown in the excerpts or documented by the README. Several substantial subsystems are represented from the source index and file tree, but their internal wiring was not sampled.

Main entry points: [`visuals.cpp`](https://github.com/oneshotgh/supremacy/blob/master/visuals.cpp) (ESP and overlays), [`client.cpp`](https://github.com/oneshotgh/supremacy/blob/master/client.cpp) (Command processing), [`clientmode.cpp`](https://github.com/oneshotgh/supremacy/blob/master/clientmode.cpp) (Engine callbacks), [`clientdll.cpp`](https://github.com/oneshotgh/supremacy/blob/master/clientdll.cpp) (Frame hooks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Game Integration"]
  node_callbacks["Engine callbacks<br/>[clientmode.cpp]"]
  node_client["Command processing<br/>[client.cpp]"]
  node_framehooks["Frame hooks<br/>[clientdll.cpp]"]
end

subgraph group_features["Gameplay Features"]
  node_aimbot["Aim assistance<br/>[aimbot.cpp]"]
  node_movement["Movement features<br/>[movement.cpp]"]
  node_hvh["Packet and anti-aim<br/>[hvh.cpp]"]
  node_grenades["Grenade prediction<br/>[grenades.cpp]"]
  node_penetration["Penetration logic<br/>[penetration.cpp]"]
  node_resolver["Player resolver<br/>[resolver.cpp]"]
  node_lagcomp["Lag compensation<br/>[lagcomp.cpp]"]
end

subgraph group_visuals["Visuals and Interface"]
  node_visuals["ESP and overlays<br/>[visuals.cpp]"]
  node_chams["Model materials<br/>[chams.cpp]"]
  node_gui["In-game menu<br/>[gui.cpp]"]
  node_config["Configuration<br/>[config.cpp]"]
end

subgraph group_sdk["Game SDK and Support"]
  node_csgo["Game interface layer<br/>[csgo.h]"]
  node_entity["Entity model<br/>[entity.h]"]
  node_offsets["Entity offsets<br/>[entoffsets.h]"]
  node_netvars["Network variables<br/>[netvars.h]"]
  node_gamerules["Match rules<br/>[gamerules.h]"]
  node_hooks["Hook registry<br/>[hooks.h]"]
  node_modules["Module access<br/>[modules.h]"]
  node_memory["Memory and patterns<br/>[address.h]"]
  node_pe["PE utilities<br/>[pe.h]"]
  node_syscall["System calls<br/>[syscall.h]"]
  node_format["Formatting utility<br/>[tinyformat.h]"]
end

node_game(("CS:GO runtime"))

node_game -->|"invokes hooks"| node_callbacks
node_callbacks -->|"dispatches commands"| node_client
node_client -->|"runs prediction"| node_grenades
node_client -->|"sends packets"| node_hvh
node_client -->|"runs aiming"| node_aimbot
node_client -->|"fixes movement"| node_movement
node_game -->|"invokes frame hooks"| node_framehooks
node_framehooks -->|"updates player data"| node_aimbot
node_framehooks -->|"draws beams"| node_visuals
node_framehooks -->|"removes smoke"| node_visuals
node_callbacks -->|"renders glow"| node_visuals
node_callbacks -->|"updates view"| node_visuals
node_visuals -->|"reads player records"| node_aimbot
node_visuals -->|"reads player state"| node_entity
node_visuals -.-> node_chams
node_gui -.-> node_config
node_entity -->|"reads offsets"| node_offsets
node_offsets -->|"initializes from"| node_netvars
node_gamerules -->|"checks game state"| node_csgo

click node_callbacks "https://github.com/oneshotgh/supremacy/blob/master/clientmode.cpp"
click node_client "https://github.com/oneshotgh/supremacy/blob/master/client.cpp"
click node_framehooks "https://github.com/oneshotgh/supremacy/blob/master/clientdll.cpp"
click node_aimbot "https://github.com/oneshotgh/supremacy/blob/master/aimbot.cpp"
click node_movement "https://github.com/oneshotgh/supremacy/blob/master/movement.cpp"
click node_hvh "https://github.com/oneshotgh/supremacy/blob/master/hvh.cpp"
click node_grenades "https://github.com/oneshotgh/supremacy/blob/master/grenades.cpp"
click node_penetration "https://github.com/oneshotgh/supremacy/blob/master/penetration.cpp"
click node_resolver "https://github.com/oneshotgh/supremacy/blob/master/resolver.cpp"
click node_lagcomp "https://github.com/oneshotgh/supremacy/blob/master/lagcomp.cpp"
click node_visuals "https://github.com/oneshotgh/supremacy/blob/master/visuals.cpp"
click node_chams "https://github.com/oneshotgh/supremacy/blob/master/chams.cpp"
click node_gui "https://github.com/oneshotgh/supremacy/blob/master/gui.cpp"
click node_config "https://github.com/oneshotgh/supremacy/blob/master/config.cpp"
click node_csgo "https://github.com/oneshotgh/supremacy/blob/master/csgo.h"
click node_entity "https://github.com/oneshotgh/supremacy/blob/master/entity.h"
click node_offsets "https://github.com/oneshotgh/supremacy/blob/master/entoffsets.h"
click node_netvars "https://github.com/oneshotgh/supremacy/blob/master/netvars.h"
click node_gamerules "https://github.com/oneshotgh/supremacy/blob/master/gamerules.h"
click node_hooks "https://github.com/oneshotgh/supremacy/blob/master/hooks.h"
click node_modules "https://github.com/oneshotgh/supremacy/blob/master/modules.h"
click node_memory "https://github.com/oneshotgh/supremacy/blob/master/address.h"
click node_pe "https://github.com/oneshotgh/supremacy/blob/master/pe.h"
click node_syscall "https://github.com/oneshotgh/supremacy/blob/master/syscall.h"
click node_format "https://github.com/oneshotgh/supremacy/blob/master/tinyformat.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_callbacks,node_client,node_framehooks toneBlue
class node_aimbot,node_movement,node_hvh,node_grenades,node_penetration,node_resolver,node_lagcomp toneAmber
class node_visuals,node_chams,node_gui,node_config toneMint
class node_csgo,node_entity,node_offsets,node_netvars,node_gamerules,node_hooks,node_modules,node_memory,node_pe,node_syscall,node_format toneRose
class node_game toneIndigo
```

## Components

### Game Integration

- [Engine callbacks](https://github.com/oneshotgh/supremacy/blob/master/clientmode.cpp): `clientmode.cpp`
- [Command processing](https://github.com/oneshotgh/supremacy/blob/master/client.cpp): `client.cpp`
- [Frame hooks](https://github.com/oneshotgh/supremacy/blob/master/clientdll.cpp): `clientdll.cpp`

### Gameplay Features

- [Aim assistance](https://github.com/oneshotgh/supremacy/blob/master/aimbot.cpp): `aimbot.cpp`
- [Movement features](https://github.com/oneshotgh/supremacy/blob/master/movement.cpp): `movement.cpp`
- [Packet and anti-aim](https://github.com/oneshotgh/supremacy/blob/master/hvh.cpp): `hvh.cpp`
- [Grenade prediction](https://github.com/oneshotgh/supremacy/blob/master/grenades.cpp): `grenades.cpp`
- [Penetration logic](https://github.com/oneshotgh/supremacy/blob/master/penetration.cpp): `penetration.cpp`
- [Player resolver](https://github.com/oneshotgh/supremacy/blob/master/resolver.cpp): `resolver.cpp`
- [Lag compensation](https://github.com/oneshotgh/supremacy/blob/master/lagcomp.cpp): `lagcomp.cpp`

### Visuals and Interface

- [ESP and overlays](https://github.com/oneshotgh/supremacy/blob/master/visuals.cpp): `visuals.cpp`
- [Model materials](https://github.com/oneshotgh/supremacy/blob/master/chams.cpp): `chams.cpp`
- [In-game menu](https://github.com/oneshotgh/supremacy/blob/master/gui.cpp): `gui.cpp`
- [Configuration](https://github.com/oneshotgh/supremacy/blob/master/config.cpp): `config.cpp`

### Game SDK and Support

- [Game interface layer](https://github.com/oneshotgh/supremacy/blob/master/csgo.h): `csgo.h`
- [Entity model](https://github.com/oneshotgh/supremacy/blob/master/entity.h): `entity.h`
- [Entity offsets](https://github.com/oneshotgh/supremacy/blob/master/entoffsets.h): `entoffsets.h`
- [Network variables](https://github.com/oneshotgh/supremacy/blob/master/netvars.h): `netvars.h`
- [Match rules](https://github.com/oneshotgh/supremacy/blob/master/gamerules.h): `gamerules.h`
- [Hook registry](https://github.com/oneshotgh/supremacy/blob/master/hooks.h): `hooks.h`
- [Module access](https://github.com/oneshotgh/supremacy/blob/master/modules.h): `modules.h`
- [Memory and patterns](https://github.com/oneshotgh/supremacy/blob/master/address.h): `address.h`
- [PE utilities](https://github.com/oneshotgh/supremacy/blob/master/pe.h): `pe.h`
- [System calls](https://github.com/oneshotgh/supremacy/blob/master/syscall.h): `syscall.h`
- [Formatting utility](https://github.com/oneshotgh/supremacy/blob/master/tinyformat.h): `tinyformat.h`

### Other components

- **CS:GO runtime**

## Connections

- CS:GO runtime → Engine callbacks: invokes hooks (evidence: `clientmode.cpp`)
- Engine callbacks → Command processing: dispatches commands (evidence: `clientmode.cpp`)
- Command processing → Grenade prediction: runs prediction (evidence: `client.cpp`)
- Command processing → Packet and anti-aim: sends packets (evidence: `client.cpp`)
- Command processing → Aim assistance: runs aiming (evidence: `client.cpp`)
- Command processing → Movement features: fixes movement (evidence: `client.cpp`)
- CS:GO runtime → Frame hooks: invokes frame hooks (evidence: `clientdll.cpp`)
- Frame hooks → Aim assistance: updates player data (evidence: `clientdll.cpp`)
- Frame hooks → ESP and overlays: draws beams (evidence: `clientdll.cpp`)
- Frame hooks → ESP and overlays: removes smoke (evidence: `clientdll.cpp`)
- Engine callbacks → ESP and overlays: renders glow (evidence: `clientmode.cpp`)
- Engine callbacks → ESP and overlays: updates view (evidence: `clientmode.cpp`)
- ESP and overlays → Aim assistance: reads player records (evidence: `visuals.cpp`)
- ESP and overlays → Entity model: reads player state (evidence: `visuals.cpp`)
- ESP and overlays → Model materials
- In-game menu → Configuration
- Entity model → Entity offsets: reads offsets (evidence: `entity.h`)
- Entity offsets → Network variables: initializes from (evidence: `entoffsets.h`)
- Match rules → Game interface layer: checks game state (evidence: `gamerules.h`)
