How ioquake/ioq3 works
ioquake3 is a Quake III engine for playing Quake III: Arena, Team Arena, and mods, with both client and dedicated-server runtime roles. The player-facing path is input and console commands through the client, networked game state and simulation, then rendered and audible output; dedicated servers run the game without that presentation path. The repository also includes bot navigation/AI, UI, and optional media, download, and voice capabilities. Arrows are limited to relationships stated in the README or visible in the supplied excerpts/index; other runtime wiring is omitted or marked unverified.
Main entry points: cl_main.c Client runtime · sv_main.c Server runtime · g_client.c Game simulation · cg_main.c Client game
Components 17
Engine services
- Server runtime
code/server/sv_main.c - Common protocol
code/qcommon/qcommon.h - Virtual filesystem
code/qcommon/files.c
Gameplay runtime
- Game simulation
code/game/g_client.c - Shared movement
code/game/bg_pmove.c
Client experience
- Client runtime
code/client/cl_main.c - Client game
code/cgame/cg_main.c - Game UI
code/ui/ui_main.c - OpenGL 1 renderer
code/renderergl1/tr_main.c - OpenGL 2 renderer
code/renderergl2/tr_main.c - Sound system
code/client/snd_main.c
Platform integrations
- SDL input
code/sdl/sdl_input.c - HTTP downloads
code/client/cl_http_curl.c - Voice and Mumble
code/client/libmumblelink.c
Bot AI
- Bot navigation
code/botlib/be_aas_reach.c - Bot decision and movement
code/botlib/be_ai_move.c
Other components
- Player
Connections 18
- Player → Client runtime: plays through
README.md - Client runtime → Server runtime: exchanges game state
- Server runtime → Game simulation: runs game logic
- Client runtime → Common protocol: uses shared protocol
- Server runtime → Common protocol: uses shared protocol
- Common protocol → Virtual filesystem: exposes file APIs
code/qcommon/qcommon.h - Player → SDL input: provides controls
README.md - SDL input → Client runtime: forwards input
code/sdl/sdl_input.c - Client runtime → Client game: loads client game
- Client game → OpenGL 1 renderer: submits scenes
- Client game → OpenGL 2 renderer: submits scenes
- Player → Game UI: uses menus
- Client runtime → Sound system: plays audio
- Client runtime → HTTP downloads: downloads game data
README.md - Client runtime → Voice and Mumble: supports voice chat
README.md - Game simulation → Shared movement: shares movement rules
- Game simulation → Bot decision and movement: supports bot gameplay
- Bot decision and movement → Bot navigation: uses navigation data