How sidreshot/openmerc works
openMERC is a Soldier of Fortune engine and mode-B game implementation. The user launches the platform executable, which enters the engine; the engine loads original game data and provides client, server, rendering, menus, and sound capabilities. Gameplay is split across game and player modules, with AI, damage, modes, scripting, navigation, and Ghoul model support. The README documents these product capabilities, but sampled source does not expose all module-loading and runtime call paths, so those links are omitted rather than inferred.
Main entry points: g_main.cpp Game module · cl_main.c Game client · sv_main.c Game server · main.c Platform entry
Components 22
Engine runtime
- Platform entry
engine/src/backends/unix/main.c - Engine core
engine/src/common/sof_engine.c - Game data and files
engine/src/common/filesystem.c - Game server
engine/src/server/sv_main.c - Network transport
engine/src/common/netchan.c - Ghoul models
engine/src/ghoul/ghoul_system.cpp - Save and load
engine/src/server/sv_save.c
Client presentation
- Game client
engine/src/client/cl_main.c - Widescreen menus
engine/src/client/menu/menu.c - GL3 renderer
engine/src/client/refresh/gl3/gl3_main.c - Client effects
engine/src/client/cl_effects.c
Game simulation
- Player lifecycle
game/src/p_client.cpp - Damage and combat
game/src/damage/g3_damage.cpp - Character AI
game/src/ai/ai_manager.cpp - Game modes
game/src/modes/gm_clients.cpp - Game scripting
game/src/script/script_vm.cpp - Navigation
game/src/nav/nav_runtime.cpp
Game modules
- OpenAL sound
modules/sound/src/snd_engine.c - Game module
game/src/g_main.cpp - Player module
player/src/pm_main.cpp
Other components
- Player
- Original game data
Connections 20
- Player → Platform entry: launches
engine/src/backends/unix/main.c - Platform entry → Engine core: initializes
engine/src/backends/unix/main.c - Engine core → Game data and files: uses
- Game data and files → Original game data: reads pak files
README.md - Game client → GL3 renderer: renders with
README.md - Game client → Widescreen menus: presents
README.md - Game client → Client effects: draws effects
README.md - Game client → OpenAL sound: uses
README.md - Game client → Network transport: exchanges packets
- Game server → Network transport: exchanges packets
- Game server → Game module: runs gameplay
README.md - Game module → Player lifecycle: handles players
game/src/p_client.cpp - Player lifecycle → Player module: uses player logic
game/src/p_client.cpp - Game module → Damage and combat: supports combat
- Game module → Character AI: supports AI
- Game module → Game modes: implements modes
game/src/modes/gm_clients.cpp - Game module → Game scripting: supports scripting
- Game module → Navigation: supports navigation
- Game client → Ghoul models: displays models
README.md - Game server → Save and load: saves levels
README.md