# plus-22/chimeraclient architecture

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

- Interactive diagram: https://gitdiagram.com/plus-22/chimeraclient
- Repository: https://github.com/plus-22/chimeraclient

## Overview

##### Main Components

a. Core Client Architecture:
- Chimera Client modifications as an overlay layer

b. Feature Modules (organize in logical groups):
- Combat System
- AutoAim
- PlayerAura
- EntityAura
- CrystalSpam

- Movement System
- Flight
- Noclip
- SpeedOverride
- JetPack

- Rendering System
- ESP Components
- Tracers
- XRay

##### Key Integration Points

a. Client-Server Interface:
- Network layer (src/network/)
- Packet handling
- Server communication protocols

b. Lua API Integration:
- Connection between C++ core and Lua scripting
- Script/lua_api directory components

##### Data Flow

- User input → Cheat modules
- Cheat modules → Game state modifications
- Game state → Rendering pipeline
- Network packets → Server communication

##### Component Details

a. GUI System:
- Menu System
- Quick Menu (DragonFire)
- Click Menu (F8 triggered)

b. Cheat Categories:
- Categories
- Combat
- Interact
- Inventory
- Movement
- Player
- Render
- World

##### Technical Implementation

Relationship between:
- Core engine (src/)
- Client modifications (client/)
- Builtin features (builtin/)
- Mod system (mods/)

##### Important Connections

Highlight:
- Chat command system → Cheat modules
- Event handlers → Cheat responses
- Rendering pipeline → Visual modifications
- Network interceptors → Packet modifications

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Core
        MT[Minetest Client]
        CC[Chimera Client]
        MT <--> CC
    end

    subgraph "Combat System"
        CS[Combat System]
        AA["AutoAim"]:::file
        PA[PlayerAura]
        EA[EntityAura]
        CSpam["CrystalSpam"]:::file
        CU["Combat Utils"]:::file
        
        CS --> AA
        CS --> PA
        CS --> EA
        CS --> CSpam
        CS --> CU
    end

    subgraph "Movement System"
        MS[Movement System]
        MF["Movement Features"]:::file
        FL[Flight]
        NC[Noclip]
        SO[SpeedOverride]
        JP[JetPack]
        
        MS --> MF
        MF --> FL
        MF --> NC
        MF --> SO
        MF --> JP
    end

    subgraph "Rendering System"
        RS[Rendering System]
        ESP[ESP Components]
        TR[Tracers]
        XR[XRay]
        
        RS --> ESP
        RS --> TR
        RS --> XR
    end

    subgraph "Core Framework"
        CF[Core Framework]
        CR["Cheat Registration"]:::file
        CC2["Cheat Commands"]:::file
        UL["Utility Library"]:::file
        
        CF --> CR
        CF --> CC2
        CF --> UL
    end

    subgraph "GUI System"
        GUI[GUI System]
        CM["Cheat Menu"]:::file
        CMH["Cheat Menu Header"]:::file
        QM[Quick Menu]
        CLM[Click Menu]
        
        GUI --> CM
        GUI --> CMH
        GUI --> QM
        GUI --> CLM
    end

    subgraph "Network Layer"
        NL[Network Layer]
        CPH["Client Packet Handler"]:::file
        NP["Network Protocol"]:::file
        CO["Client Opcodes"]:::file
        
        NL --> CPH
        NL --> NP
        NL --> CO
    end

    subgraph "Inventory System"
        IS[Inventory System]
        IC["Inventory Cheats"]:::file
        
        IS --> IC
    end

    subgraph "World System"
        WS[World System]
        WM["World Modifications"]:::file
        
        WS --> WM
    end

    Core --> CF
    CF --> CS
    CF --> MS
    CF --> RS
    CF --> IS
    CF --> WS
    CF --> GUI
    CF --> NL

    classDef file fill:#f9f,stroke:#333,stroke-width:2px
    classDef system fill:#bbf,stroke:#333,stroke-width:2px
    classDef core fill:#dfd,stroke:#333,stroke-width:4px

    click AA "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/autoaim.lua"
    click CSpam "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/crystalspam.lua"
    click CU "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/combat.lua"
    click MF "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/physics_override.lua"
    click IC "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/inventory.lua"
    click WM "https://github.com/plus-22/chimeraclient/blob/master/builtin/cheats/worldutil.lua"
    click CR "https://github.com/plus-22/chimeraclient/blob/master/builtin/client/cheats.lua"
    click CC2 "https://github.com/plus-22/chimeraclient/blob/master/builtin/client/chatcommands.lua"
    click UL "https://github.com/plus-22/chimeraclient/blob/master/builtin/client/wasplib.lua"
    click CM "https://github.com/plus-22/chimeraclient/blob/master/src/gui/cheatMenu.cpp"
    click CMH "https://github.com/plus-22/chimeraclient/blob/master/src/gui/cheatMenu.h"
    click CPH "https://github.com/plus-22/chimeraclient/blob/master/src/network/clientpackethandler.cpp"
    click NP "https://github.com/plus-22/chimeraclient/blob/master/src/network/networkprotocol.h"
    click CO "https://github.com/plus-22/chimeraclient/blob/master/src/network/clientopcodes.cpp"
```
