# wolfetplayer/realrtcw architecture

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

- Interactive diagram: https://gitdiagram.com/wolfetplayer/realrtcw
- Repository: https://github.com/wolfetplayer/realrtcw

## Overview

RealRTCW is a single-player RTCW overhaul combining engine/platform modernization with expanded gameplay and usability features. The principal workflow is a player using the game client and UI to enter gameplay; game logic and client-side presentation then produce rendered, audible play. The README also documents separate platform, Steam, content, and quality-of-life capabilities. Relationships among many runtime modules are not visible in the sampled excerpts, so the graph limits direct calls to documented links and marks other system-level connections as unverified.

Main entry points: [`code/client/client.h`](https://github.com/wolfetplayer/realrtcw/blob/main/code/client/client.h) (Game Client), [`code/cgame/cg_local.h`](https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_local.h) (Client Game), [`code/game/g_client.c`](https://github.com/wolfetplayer/realrtcw/blob/main/code/game/g_client.c) (Game Logic), [`code/server/server.h`](https://github.com/wolfetplayer/realrtcw/blob/main/code/server/server.h) (Game Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game Runtime"]
  node_client["Game Client<br/>[client.h]"]
  node_server["Game Server<br/>[server.h]"]
  node_common["Engine Services<br/>[qcommon.h]"]
  node_filesystem["File System<br/>[files.c]"]
end

subgraph group_gameplay["Gameplay Systems"]
  node_gameplay_logic["Game Logic<br/>[g_client.c]"]
  node_bot_navigation["Bot Navigation<br/>[be_aas_reach.c]"]
  node_weapons["Weapon Systems<br/>[cg_weapons.c]"]
end

subgraph group_presentation["Player Experience"]
  node_cgame["Client Game<br/>[cg_local.h]"]
  node_atmosphere["Atmospheric Effects<br/>[cg_atmospheric.c]"]
  node_renderer["Rendering<br/>[tr_shader.c]"]
  node_ui["Menus and HUD<br/>[ui_main.c]"]
end

subgraph group_platform["Platform Integrations"]
  node_sdl["SDL Backend<br/>[sdl_glimp.c]"]
  node_steam["Steam Features<br/>[steam.c]"]
  node_audio["Audio API<br/>[al.h]"]
  node_bspc["BSPC Tools<br/>[Program.cs]"]
end

node_player(("Player"))

node_player -->|"plays through"| node_client
node_client -.->|"enters gameplay"| node_server
node_server -.->|"runs game logic"| node_gameplay_logic
node_client -.->|"presents play"| node_cgame
node_cgame -.->|"renders"| node_renderer
node_client -.->|"opens menus"| node_ui
node_gameplay_logic -.->|"uses navigation"| node_bot_navigation
node_cgame -->|"supports weapons"| node_weapons
node_cgame -->|"supports effects"| node_atmosphere
node_client -->|"uses engine services"| node_common
node_common -.->|"provides file access"| node_filesystem
node_client -->|"uses SDL backend"| node_sdl
node_client -->|"integrates Steam features"| node_steam
node_client -.->|"uses audio"| node_audio
node_player -->|"uses HUD"| node_ui
node_bspc -.->|"supports custom maps"| node_gameplay_logic

click node_client "https://github.com/wolfetplayer/realrtcw/blob/main/code/client/client.h"
click node_server "https://github.com/wolfetplayer/realrtcw/blob/main/code/server/server.h"
click node_common "https://github.com/wolfetplayer/realrtcw/blob/main/code/qcommon/qcommon.h"
click node_filesystem "https://github.com/wolfetplayer/realrtcw/blob/main/code/qcommon/files.c"
click node_gameplay_logic "https://github.com/wolfetplayer/realrtcw/blob/main/code/game/g_client.c"
click node_bot_navigation "https://github.com/wolfetplayer/realrtcw/blob/main/code/botlib/be_aas_reach.c"
click node_cgame "https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_local.h"
click node_weapons "https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_weapons.c"
click node_atmosphere "https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_atmospheric.c"
click node_renderer "https://github.com/wolfetplayer/realrtcw/blob/main/code/renderer/tr_shader.c"
click node_ui "https://github.com/wolfetplayer/realrtcw/blob/main/code/ui/ui_main.c"
click node_sdl "https://github.com/wolfetplayer/realrtcw/blob/main/code/sdl/sdl_glimp.c"
click node_steam "https://github.com/wolfetplayer/realrtcw/blob/main/code/steam/steam.c"
click node_audio "https://github.com/wolfetplayer/realrtcw/blob/main/code/AL/al.h"
click node_bspc "https://github.com/wolfetplayer/realrtcw/blob/main/sdk/BSPCUI/Program.cs"

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_client,node_server,node_common,node_filesystem toneBlue
class node_gameplay_logic,node_bot_navigation,node_weapons toneAmber
class node_cgame,node_atmosphere,node_renderer,node_ui toneMint
class node_sdl,node_steam,node_audio,node_bspc toneRose
class node_player toneIndigo
```

## Components

### Game Runtime

- [Game Client](https://github.com/wolfetplayer/realrtcw/blob/main/code/client/client.h): `code/client/client.h`
- [Game Server](https://github.com/wolfetplayer/realrtcw/blob/main/code/server/server.h): `code/server/server.h`
- [Engine Services](https://github.com/wolfetplayer/realrtcw/blob/main/code/qcommon/qcommon.h): `code/qcommon/qcommon.h`
- [File System](https://github.com/wolfetplayer/realrtcw/blob/main/code/qcommon/files.c): `code/qcommon/files.c`

### Gameplay Systems

- [Game Logic](https://github.com/wolfetplayer/realrtcw/blob/main/code/game/g_client.c): `code/game/g_client.c`
- [Bot Navigation](https://github.com/wolfetplayer/realrtcw/blob/main/code/botlib/be_aas_reach.c): `code/botlib/be_aas_reach.c`
- [Weapon Systems](https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_weapons.c): `code/cgame/cg_weapons.c`

### Player Experience

- [Client Game](https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_local.h): `code/cgame/cg_local.h`
- [Atmospheric Effects](https://github.com/wolfetplayer/realrtcw/blob/main/code/cgame/cg_atmospheric.c): `code/cgame/cg_atmospheric.c`
- [Rendering](https://github.com/wolfetplayer/realrtcw/blob/main/code/renderer/tr_shader.c): `code/renderer/tr_shader.c`
- [Menus and HUD](https://github.com/wolfetplayer/realrtcw/blob/main/code/ui/ui_main.c): `code/ui/ui_main.c`

### Platform Integrations

- [SDL Backend](https://github.com/wolfetplayer/realrtcw/blob/main/code/sdl/sdl_glimp.c): `code/sdl/sdl_glimp.c`
- [Steam Features](https://github.com/wolfetplayer/realrtcw/blob/main/code/steam/steam.c): `code/steam/steam.c`
- [Audio API](https://github.com/wolfetplayer/realrtcw/blob/main/code/AL/al.h): `code/AL/al.h`
- [BSPC Tools](https://github.com/wolfetplayer/realrtcw/blob/main/sdk/BSPCUI/Program.cs): `sdk/BSPCUI/Program.cs`

### Other components

- **Player**

## Connections

- Player → Game Client: plays through (evidence: `README.md`)
- Game Client → Game Server: enters gameplay
- Game Server → Game Logic: runs game logic
- Game Client → Client Game: presents play
- Client Game → Rendering: renders
- Game Client → Menus and HUD: opens menus
- Game Logic → Bot Navigation: uses navigation
- Client Game → Weapon Systems: supports weapons (evidence: `README.md`)
- Client Game → Atmospheric Effects: supports effects (evidence: `README.md`)
- Game Client → Engine Services: uses engine services (evidence: `code/client/client.h`)
- Engine Services → File System: provides file access (evidence: `code/qcommon/files.c`)
- Game Client → SDL Backend: uses SDL backend (evidence: `README.md`)
- Game Client → Steam Features: integrates Steam features (evidence: `README.md`)
- Game Client → Audio API: uses audio
- Player → Menus and HUD: uses HUD (evidence: `README.md`)
- BSPC Tools → Game Logic: supports custom maps
