How id-software/quake2-rerelease-dll works
This repository provides the Quake II 2023 rerelease game code for modding, alongside original versions retained as reference. The principal workflow is engine-to-game-module execution: the engine invokes game exports, which run player, world, item, combat, and entity logic and communicate state back through the game API. The rerelease also adds a thin client-game module, player-movement exports, CTF, expansion content, and bot support. Edges are limited to relationships documented in the README or visible in indexed source references; several runtime interactions are not established by the sampled excerpts.
Main entry points: g_local.h Game State · game.h Game API · bot_exports.cpp Bot Support · p_client.cpp Player Lifecycle
Components 20
Engine Runtime
- Game API
rerelease/game.h - Game Loop
rerelease/g_main.cpp - Game State
rerelease/g_local.h - Client Game
rerelease/cg_main.cpp - Client Screen
rerelease/cg_screen.cpp
Core Gameplay
- Player Lifecycle
rerelease/p_client.cpp - Player Movement
rerelease/p_move.cpp - Items & Inventory
rerelease/g_items.cpp - Weapons & Combat
rerelease/g_weapon.cpp - World Entities
rerelease/g_spawn.cpp - Entity Physics
rerelease/g_phys.cpp - Monster AI
rerelease/g_ai.cpp - Player Types
rerelease/m_player.h - Monster Frames
rerelease/m_flash.h
Game Modes
- Capture The Flag
rerelease/ctf/g_ctf.cpp - Rogue Content
rerelease/rogue/g_rogue_newweap.cpp - Xatrix Content
rerelease/xatrix/m_xatrix_gekk.cpp
Client Features
- Bot Support
rerelease/bots/bot_exports.cpp - Bot Debug
rerelease/bots/bot_debug.cpp
Other components
- Game Engine
Connections 22
- Game Engine → Game API: calls exports
- Game API → Game Loop: dispatches
- Game API → Client Game: exports movement
- Game Engine → Client Game: loads module
- Client Game → Client Screen: renders
- Game Loop → Game State: updates
- Player Lifecycle → Game State: uses state
rerelease/p_client.cpp - Player Lifecycle → Player Types: uses types
rerelease/p_client.cpp - Player Lifecycle → Bot Support: includes bot interface
rerelease/p_client.cpp - Player Movement → Game API: exported through
- Items & Inventory → Game State: uses state
rerelease/g_items.cpp - Items & Inventory → Bot Support: includes bot interface
rerelease/g_items.cpp - Monster AI → Game State: uses state
- Capture The Flag → Game State: uses state
rerelease/ctf/g_ctf.cpp - Rogue Content → Game State: uses state
rerelease/rogue/g_rogue_newweap.cpp - Xatrix Content → Game State: uses state
rerelease/xatrix/m_xatrix_gekk.cpp - Bot Debug → Bot Support: uses utilities
rerelease/bots/bot_debug.cpp - Bot Support → Game Engine: requests bot services
- Weapons & Combat → Game State: uses state
- World Entities → Game State: uses state
- Entity Physics → Game State: uses state
- Monster AI → Monster Frames: uses frames