# riik26/pixelgun3d-cheetos architecture

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

- Interactive diagram: https://gitdiagram.com/riik26/pixelgun3d-cheetos
- Repository: https://github.com/riik26/pixelgun3d-cheetos

## Overview

Cheetos is an internal Pixel Gun 3D trainer and reverse-engineering framework. Its principal runtime path is DLL startup, IL2CPP/game-method resolution, feature and hook initialization, then rendering an in-game menu and overlays while feature callbacks modify game behavior. The README documents three-tier method resolution and Windows/Linux Proton use; feature directories also show distinct visual, player, weapon, currency, gadget, and anti-cheat domains. Edges are limited to startup calls, indexed source references, and README statements; unsampled implementation details are not treated as inspected.

Main entry points: [`src/core/dllmain.cpp`](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/dllmain.cpp) (DLL startup), [`src/utils/hooks.cpp`](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/hooks.cpp) (Detour hooks), [`src/utils/il2cpp.cpp`](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/il2cpp.cpp) (IL2CPP resolver), [`src/features/weaponmod/weaponmod.cpp`](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/weaponmod/weaponmod.cpp) (Weapon modifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and rendering"]
  node_injector["Process injector<br/>[injector.cpp]"]
  node_dll["DLL startup<br/>[dllmain.cpp]"]
  node_renderer["D3D renderer<br/>[renderer.cpp]"]
  node_linuxoverlay["Linux overlay<br/>[linux_overlay.cpp]"]
  node_streamproof["Streamproof overlay"]
end

subgraph group_resolution["Game integration"]
  node_il2cpp["IL2CPP resolver<br/>[il2cpp.cpp]"]
  node_offsets["Method offsets<br/>[offsets.h]"]
  node_salted["Obfuscated values<br/>[salted.cpp]"]
  node_hooks["Detour hooks<br/>[hooks.cpp]"]
  node_callbacks["Feature callbacks"]
end

subgraph group_features["Trainer features"]
  node_anticheat["Anti-cheat hooks"]
  node_visual["ESP and visuals<br/>[visual.cpp]"]
  node_espbody["ESP body<br/>[esp_body.cpp]"]
  node_playermod["Player modifications"]
  node_weaponmod["Weapon modifications<br/>[weaponmod.cpp]"]
  node_gadgetmod["Gadget modifications<br/>[gadgetmod.cpp]"]
  node_currency["Currency features<br/>[currency_hooks.cpp]"]
end

subgraph group_interface["Settings and interface"]
  node_menu["In-game menu<br/>[menu.cpp]"]
  node_settings["Settings registry"]
  node_config["Configuration<br/>[config.cpp]"]
end

node_player(("Trainer user"))

node_player -.->|"launches"| node_injector
node_injector -.->|"loads"| node_dll
node_dll -->|"initializes"| node_il2cpp
node_il2cpp -->|"resolves from"| node_offsets
node_dll -->|"registers settings"| node_settings
node_dll -->|"loads"| node_config
node_dll -->|"initializes"| node_salted
node_dll -->|"initializes"| node_hooks
node_dll -->|"registers hooks"| node_anticheat
node_dll -->|"registers hooks"| node_playermod
node_dll -->|"registers hooks"| node_weaponmod
node_dll -->|"initializes"| node_renderer
node_renderer -->|"renders"| node_menu
node_renderer -.->|"invokes"| node_callbacks
node_menu -->|"reads groups"| node_settings
node_menu -->|"uses"| node_config
node_visual -->|"resolves game methods"| node_il2cpp
node_visual -->|"registers callbacks"| node_callbacks
node_visual -->|"updates"| node_espbody
node_weaponmod -->|"installs detours"| node_hooks
node_weaponmod -->|"resolves methods"| node_il2cpp
node_weaponmod -.->|"uses"| node_salted
node_playermod -->|"uses"| node_hooks
node_playermod -->|"resolves methods"| node_il2cpp
node_anticheat -->|"uses"| node_hooks
node_gadgetmod -->|"uses"| node_hooks
node_currency -->|"uses"| node_hooks

click node_injector "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/injector.cpp"
click node_dll "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/dllmain.cpp"
click node_renderer "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/renderer.cpp"
click node_linuxoverlay "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/linux_overlay.cpp"
click node_streamproof "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/streamproof_win32.cpp"
click node_il2cpp "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/il2cpp.cpp"
click node_offsets "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/offsets.h"
click node_salted "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/salted.cpp"
click node_hooks "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/hooks.cpp"
click node_callbacks "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/feature_callbacks.cpp"
click node_anticheat "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/anticheat/anticheat_hooks.cpp"
click node_visual "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/visual/visual.cpp"
click node_espbody "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/visual/esp_body.cpp"
click node_playermod "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/playermod/playermod_hooks.cpp"
click node_weaponmod "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/weaponmod/weaponmod.cpp"
click node_gadgetmod "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/gadgetmod/gadgetmod.cpp"
click node_currency "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/currency/currency_hooks.cpp"
click node_menu "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/ui/menu.cpp"
click node_settings "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/settings_registry.cpp"
click node_config "https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/config.cpp"

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_injector,node_dll,node_renderer,node_linuxoverlay,node_streamproof,node_player toneBlue
class node_il2cpp,node_offsets,node_salted,node_hooks,node_callbacks toneAmber
class node_anticheat,node_visual,node_espbody,node_playermod,node_weaponmod,node_gadgetmod,node_currency toneMint
class node_menu,node_settings,node_config toneRose
```

## Components

### Runtime and rendering

- [Process injector](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/injector.cpp): `src/core/injector.cpp`
- [DLL startup](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/dllmain.cpp): `src/core/dllmain.cpp`
- [D3D renderer](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/renderer.cpp): `src/core/renderer.cpp`
- [Linux overlay](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/linux_overlay.cpp): `src/core/linux_overlay.cpp`
- [Streamproof overlay](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/core/streamproof_win32.cpp): `src/core/streamproof_win32.cpp`

### Game integration

- [IL2CPP resolver](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/il2cpp.cpp): `src/utils/il2cpp.cpp`
- [Method offsets](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/offsets.h): `src/utils/offsets.h`
- [Obfuscated values](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/salted.cpp): `src/utils/salted.cpp`
- [Detour hooks](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/hooks.cpp): `src/utils/hooks.cpp`
- [Feature callbacks](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/feature_callbacks.cpp): `src/utils/feature_callbacks.cpp`

### Trainer features

- [Anti-cheat hooks](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/anticheat/anticheat_hooks.cpp): `src/features/anticheat/anticheat_hooks.cpp`
- [ESP and visuals](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/visual/visual.cpp): `src/features/visual/visual.cpp`
- [ESP body](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/visual/esp_body.cpp): `src/features/visual/esp_body.cpp`
- [Player modifications](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/playermod/playermod_hooks.cpp): `src/features/playermod/playermod_hooks.cpp`
- [Weapon modifications](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/weaponmod/weaponmod.cpp): `src/features/weaponmod/weaponmod.cpp`
- [Gadget modifications](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/gadgetmod/gadgetmod.cpp): `src/features/gadgetmod/gadgetmod.cpp`
- [Currency features](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/features/currency/currency_hooks.cpp): `src/features/currency/currency_hooks.cpp`

### Settings and interface

- [In-game menu](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/ui/menu.cpp): `src/ui/menu.cpp`
- [Settings registry](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/settings_registry.cpp): `src/utils/settings_registry.cpp`
- [Configuration](https://github.com/riik26/pixelgun3d-cheetos/blob/main/src/utils/config.cpp): `src/utils/config.cpp`

### Other components

- **Trainer user**

## Connections

- Trainer user → Process injector: launches
- Process injector → DLL startup: loads
- DLL startup → IL2CPP resolver: initializes (evidence: `src/core/dllmain.cpp`)
- IL2CPP resolver → Method offsets: resolves from
- DLL startup → Settings registry: registers settings (evidence: `src/core/dllmain.cpp`)
- DLL startup → Configuration: loads (evidence: `src/core/dllmain.cpp`)
- DLL startup → Obfuscated values: initializes (evidence: `src/core/dllmain.cpp`)
- DLL startup → Detour hooks: initializes (evidence: `src/core/dllmain.cpp`)
- DLL startup → Anti-cheat hooks: registers hooks (evidence: `src/core/dllmain.cpp`)
- DLL startup → Player modifications: registers hooks (evidence: `src/core/dllmain.cpp`)
- DLL startup → Weapon modifications: registers hooks (evidence: `src/core/dllmain.cpp`)
- DLL startup → D3D renderer: initializes (evidence: `src/core/dllmain.cpp`)
- D3D renderer → In-game menu: renders (evidence: `src/core/renderer.cpp`)
- D3D renderer → Feature callbacks: invokes (evidence: `src/core/renderer.cpp`)
- In-game menu → Settings registry: reads groups (evidence: `src/ui/menu.cpp`)
- In-game menu → Configuration: uses (evidence: `src/ui/menu.cpp`)
- ESP and visuals → IL2CPP resolver: resolves game methods (evidence: `src/features/visual/visual.cpp`)
- ESP and visuals → Feature callbacks: registers callbacks (evidence: `src/features/visual/visual.cpp`)
- ESP and visuals → ESP body: updates (evidence: `src/features/visual/esp_body.cpp`)
- Weapon modifications → Detour hooks: installs detours (evidence: `src/features/weaponmod/weaponmod.cpp`)
- Weapon modifications → IL2CPP resolver: resolves methods (evidence: `src/features/weaponmod/weaponmod.cpp`)
- Weapon modifications → Obfuscated values: uses (evidence: `src/features/weaponmod/weaponmod.cpp`)
- Player modifications → Detour hooks: uses (evidence: `src/features/playermod/playermod_hooks.cpp`)
- Player modifications → IL2CPP resolver: resolves methods (evidence: `src/features/playermod/playermod_hooks.cpp`)
- Anti-cheat hooks → Detour hooks: uses (evidence: `src/features/anticheat/anticheat_hooks.cpp`)
- Gadget modifications → Detour hooks: uses (evidence: `src/features/gadgetmod/gadgetmod.cpp`)
- Currency features → Detour hooks: uses (evidence: `src/features/currency/currency_hooks.cpp`)
