# id-software/quake-iii-arena architecture

> Architecture diagram of the GitHub repository id-software/quake-iii-arena, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/id-software/quake-iii-arena
- Repository: https://github.com/id-software/quake-iii-arena

## Overview

This is the Quake III Arena source release: a multiplayer arena game, alongside its map editor and map-compilation tools. The primary player workflow runs from client input and server communication through game simulation to client-side presentation. The tree also identifies bot navigation and authoring tools as substantial product capabilities. The excerpts establish some interfaces and responsibilities, but leave most runtime calls unsampled; those broader workflow links are therefore dashed and unverified.

Main entry points: [`code/client/cl_main.c`](https://github.com/id-software/quake-iii-arena/blob/master/code/client/cl_main.c) (Game Client), [`code/server/sv_main.c`](https://github.com/id-software/quake-iii-arena/blob/master/code/server/sv_main.c) (Game Server), [`code/game/g_client.c`](https://github.com/id-software/quake-iii-arena/blob/master/code/game/g_client.c) (Game Simulation), [`code/qcommon/common.c`](https://github.com/id-software/quake-iii-arena/blob/master/code/qcommon/common.c) (Engine Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Game Runtime"]
  node_client["Game Client<br/>[cl_main.c]"]
  node_server["Game Server<br/>[sv_main.c]"]
  node_game["Game Simulation<br/>[g_client.c]"]
  node_shared["Shared Movement<br/>[bg_pmove.c]"]
  node_cgame["Client Game<br/>[cg_main.c]"]
end

subgraph group_engine["Engine Services"]
  node_renderer["Renderer<br/>[tr_main.c]"]
  node_ui["Game UI<br/>[ui_main.c]"]
  node_common["Engine Core<br/>[common.c]"]
  node_filesystem["Filesystem<br/>[files.c]"]
end

subgraph group_bot["Bot Navigation"]
  node_botapi["Bot Interface<br/>[be_interface.c]"]
  node_aasreach["Reachability Builder<br/>[be_aas_reach.c]"]
  node_aasroute["Route Planning<br/>[be_aas_route.c]"]
  node_botmove["Bot Movement<br/>[be_ai_move.c]"]
end

subgraph group_author["Map Authoring"]
  node_radiant["Q3Radiant Editor<br/>[PlugInManager.cpp]"]
  node_mapcompiler["Map Compiler<br/>[map.c]"]
end

subgraph group_tools["Content Tools"]
  node_bspcompiler["Bot Route Compiler<br/>[bspc.c]"]
  node_aasfile["Navigation Data<br/>[aas_file.c]"]
  node_lcc["LCC Compiler<br/>[main.c]"]
  node_q3asm["QVM Assembler<br/>[q3asm.c]"]
end

node_player(("Player"))

node_player -.->|"plays through"| node_client
node_client -.->|"sends commands"| node_server
node_server -.->|"dispatches game"| node_game
node_game -.->|"uses movement"| node_shared
node_client -.->|"runs module"| node_cgame
node_cgame -.->|"submits scenes"| node_renderer
node_client -.->|"runs interface"| node_ui
node_client -.->|"uses engine core"| node_common
node_common -.->|"accesses files"| node_filesystem
node_server -.->|"uses engine core"| node_common
node_server -->|"loads game module"| node_game
node_botapi -.->|"exposes navigation"| node_aasreach
node_botmove -.->|"requests routes"| node_aasroute
node_radiant -.->|"authors maps for"| node_mapcompiler
node_mapcompiler -.->|"produces map input"| node_bspcompiler
node_bspcompiler -.->|"writes navigation data"| node_aasfile
node_lcc -.->|"emits assembly for"| node_q3asm

click node_client "https://github.com/id-software/quake-iii-arena/blob/master/code/client/cl_main.c"
click node_server "https://github.com/id-software/quake-iii-arena/blob/master/code/server/sv_main.c"
click node_game "https://github.com/id-software/quake-iii-arena/blob/master/code/game/g_client.c"
click node_shared "https://github.com/id-software/quake-iii-arena/blob/master/code/game/bg_pmove.c"
click node_cgame "https://github.com/id-software/quake-iii-arena/blob/master/code/cgame/cg_main.c"
click node_renderer "https://github.com/id-software/quake-iii-arena/blob/master/code/renderer/tr_main.c"
click node_ui "https://github.com/id-software/quake-iii-arena/blob/master/code/ui/ui_main.c"
click node_common "https://github.com/id-software/quake-iii-arena/blob/master/code/qcommon/common.c"
click node_filesystem "https://github.com/id-software/quake-iii-arena/blob/master/code/qcommon/files.c"
click node_botapi "https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_interface.c"
click node_aasreach "https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_aas_reach.c"
click node_aasroute "https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_aas_route.c"
click node_botmove "https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_ai_move.c"
click node_radiant "https://github.com/id-software/quake-iii-arena/blob/master/q3radiant/PlugInManager.cpp"
click node_mapcompiler "https://github.com/id-software/quake-iii-arena/blob/master/q3map/map.c"
click node_bspcompiler "https://github.com/id-software/quake-iii-arena/blob/master/code/bspc/bspc.c"
click node_aasfile "https://github.com/id-software/quake-iii-arena/blob/master/code/bspc/aas_file.c"
click node_lcc "https://github.com/id-software/quake-iii-arena/blob/master/lcc/src/main.c"
click node_q3asm "https://github.com/id-software/quake-iii-arena/blob/master/q3asm/q3asm.c"

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_game,node_shared,node_cgame toneBlue
class node_renderer,node_ui,node_common,node_filesystem toneAmber
class node_botapi,node_aasreach,node_aasroute,node_botmove toneMint
class node_radiant,node_mapcompiler toneRose
class node_bspcompiler,node_aasfile,node_lcc,node_q3asm,node_player toneIndigo
```

## Components

### Game Runtime

- [Game Client](https://github.com/id-software/quake-iii-arena/blob/master/code/client/cl_main.c): `code/client/cl_main.c`
- [Game Server](https://github.com/id-software/quake-iii-arena/blob/master/code/server/sv_main.c): `code/server/sv_main.c`
- [Game Simulation](https://github.com/id-software/quake-iii-arena/blob/master/code/game/g_client.c): `code/game/g_client.c`
- [Shared Movement](https://github.com/id-software/quake-iii-arena/blob/master/code/game/bg_pmove.c): `code/game/bg_pmove.c`
- [Client Game](https://github.com/id-software/quake-iii-arena/blob/master/code/cgame/cg_main.c): `code/cgame/cg_main.c`

### Engine Services

- [Renderer](https://github.com/id-software/quake-iii-arena/blob/master/code/renderer/tr_main.c): `code/renderer/tr_main.c`
- [Game UI](https://github.com/id-software/quake-iii-arena/blob/master/code/ui/ui_main.c): `code/ui/ui_main.c`
- [Engine Core](https://github.com/id-software/quake-iii-arena/blob/master/code/qcommon/common.c): `code/qcommon/common.c`
- [Filesystem](https://github.com/id-software/quake-iii-arena/blob/master/code/qcommon/files.c): `code/qcommon/files.c`

### Bot Navigation

- [Bot Interface](https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_interface.c): `code/botlib/be_interface.c`
- [Reachability Builder](https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_aas_reach.c): `code/botlib/be_aas_reach.c`
- [Route Planning](https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_aas_route.c): `code/botlib/be_aas_route.c`
- [Bot Movement](https://github.com/id-software/quake-iii-arena/blob/master/code/botlib/be_ai_move.c): `code/botlib/be_ai_move.c`

### Map Authoring

- [Q3Radiant Editor](https://github.com/id-software/quake-iii-arena/blob/master/q3radiant/PlugInManager.cpp): `q3radiant/PlugInManager.cpp`
- [Map Compiler](https://github.com/id-software/quake-iii-arena/blob/master/q3map/map.c): `q3map/map.c`

### Content Tools

- [Bot Route Compiler](https://github.com/id-software/quake-iii-arena/blob/master/code/bspc/bspc.c): `code/bspc/bspc.c`
- [Navigation Data](https://github.com/id-software/quake-iii-arena/blob/master/code/bspc/aas_file.c): `code/bspc/aas_file.c`
- [LCC Compiler](https://github.com/id-software/quake-iii-arena/blob/master/lcc/src/main.c): `lcc/src/main.c`
- [QVM Assembler](https://github.com/id-software/quake-iii-arena/blob/master/q3asm/q3asm.c): `q3asm/q3asm.c`

### Other components

- **Player**

## Connections

- Player → Game Client: plays through
- Game Client → Game Server: sends commands
- Game Server → Game Simulation: dispatches game
- Game Simulation → Shared Movement: uses movement
- Game Client → Client Game: runs module
- Client Game → Renderer: submits scenes
- Game Client → Game UI: runs interface
- Game Client → Engine Core: uses engine core
- Engine Core → Filesystem: accesses files
- Game Server → Engine Core: uses engine core
- Game Server → Game Simulation: loads game module
- Bot Interface → Reachability Builder: exposes navigation
- Bot Movement → Route Planning: requests routes
- Q3Radiant Editor → Map Compiler: authors maps for
- Map Compiler → Bot Route Compiler: produces map input
- Bot Route Compiler → Navigation Data: writes navigation data
- LCC Compiler → QVM Assembler: emits assembly for
