# misadev4/bo1-zombies-decompiled architecture

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

- Interactive diagram: https://gitdiagram.com/misadev4/bo1-zombies-decompiled
- Repository: https://github.com/misadev4/bo1-zombies-decompiled

## Overview

BO1 Zombies is a decompiled, modifiable game engine rather than a standalone service. A player’s input is handled by client/gameplay code, advances game simulation, and is ultimately presented by the renderer; the tree also shows asset loading, effects, physics, and online-service subsystems. The README establishes the modding purpose, while sampled source and the SOURCE INDEX support only selected internal links, so unsampled connections are omitted rather than presented as verified.

Main entry points: [`src/game_mp/g_main_mp.cpp`](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_mp/g_main_mp.cpp) (Multiplayer game), [`src/client/cl_main.cpp`](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/client/cl_main.cpp) (Client runtime), [`src/cgame/cg_main.cpp`](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/cgame/cg_main.cpp) (Single-player client), [`src/gfx_d3d/r_rendercmds.cpp`](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/gfx_d3d/r_rendercmds.cpp) (D3D renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Gameplay simulation"]
  node_sp_game["Single-player game<br/>[g_sp_client.cpp]"]
  node_mp_game["Multiplayer game<br/>[g_main_mp.cpp]"]
  node_script_commands["Script commands"]
  node_movement["Player movement<br/>[bg_pmove.cpp]"]
end

subgraph group_client["Client runtime"]
  node_client_runtime["Client runtime<br/>[cl_main.cpp]"]
  node_client_game["Single-player client<br/>[cg_main.cpp]"]
  node_mp_client["Multiplayer client<br/>[cg_main_mp.cpp]"]
end

subgraph group_render["Rendering and effects"]
  node_renderer["D3D renderer<br/>[r_rendercmds.cpp]"]
  node_render_workers["Render workers<br/>[r_workercmds.cpp]"]
  node_effects["Effects system<br/>[fx_system.cpp]"]
end

subgraph group_world["World and physics"]
  node_dynamic_entities["Dynamic entities"]
  node_glass["Breakable glass<br/>[glass_client.cpp]"]
  node_vehicle_control["Vehicle control"]
  node_ragdoll["Ragdoll controllers"]
  node_assets[("Asset database<br/>[db_load.cpp]")]
end

subgraph group_services["Online services"]
  node_dw_storage["DemonWare storage<br/>[dwStorage.cpp]"]
  node_steam_storage["Steam remote storage API"]
end

node_player(("Player"))
node_modder(("Modder"))

node_player -.->|"provides input"| node_client_runtime
node_client_runtime -.->|"runs client"| node_client_game
node_client_game -.->|"presents frame"| node_renderer
node_player -.->|"plays"| node_sp_game
node_player -.->|"plays"| node_mp_client
node_mp_client -.->|"exchanges game state"| node_mp_game
node_sp_game -.->|"uses movement"| node_movement
node_mp_game -.->|"uses movement"| node_movement
node_script_commands -->|"imports declarations"| node_mp_game
node_script_commands -.->|"uses gameplay code"| node_movement
node_dynamic_entities -.->|"interacts with"| node_glass
node_vehicle_control -->|"imports declarations"| node_mp_game
node_vehicle_control -->|"imports declarations"| node_client_game
node_ragdoll -.->|"updates pose"| node_renderer
node_renderer -.->|"dispatches work"| node_render_workers
node_render_workers -->|"registers effects worker"| node_effects
node_dynamic_entities -.->|"loads entity data"| node_assets
node_dw_storage -.->|"separate storage interface"| node_steam_storage
node_modder -.->|"modifies engine"| node_client_runtime

click node_client_runtime "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/client/cl_main.cpp"
click node_client_game "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/cgame/cg_main.cpp"
click node_mp_client "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/cgame_mp/cg_main_mp.cpp"
click node_sp_game "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_sp/g_sp_client.cpp"
click node_mp_game "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_mp/g_main_mp.cpp"
click node_script_commands "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_mp/g_client_script_cmd_mp.cpp"
click node_movement "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/bgame/bg_pmove.cpp"
click node_dynamic_entities "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/DynEntity/DynEntity_client.cpp"
click node_glass "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/glass/glass_client.cpp"
click node_vehicle_control "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/vehicle/nitrous_vehicle_controller.cpp"
click node_ragdoll "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/ragdoll/ragdoll_controller.cpp"
click node_renderer "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/gfx_d3d/r_rendercmds.cpp"
click node_render_workers "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/gfx_d3d/r_workercmds.cpp"
click node_effects "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/EffectsCore/fx_system.cpp"
click node_assets "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/database/db_load.cpp"
click node_dw_storage "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/DW/dwStorage.cpp"
click node_steam_storage "https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/steam/isteamremotestorage.h"

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_sp_game,node_mp_game,node_script_commands,node_movement toneBlue
class node_client_runtime,node_client_game,node_mp_client toneAmber
class node_renderer,node_render_workers,node_effects toneMint
class node_dynamic_entities,node_glass,node_vehicle_control,node_ragdoll,node_assets toneRose
class node_dw_storage,node_steam_storage,node_player,node_modder toneIndigo
```

## Components

### Gameplay simulation

- [Single-player game](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_sp/g_sp_client.cpp): `src/game_sp/g_sp_client.cpp`
- [Multiplayer game](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_mp/g_main_mp.cpp): `src/game_mp/g_main_mp.cpp`
- [Script commands](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/game_mp/g_client_script_cmd_mp.cpp): `src/game_mp/g_client_script_cmd_mp.cpp`
- [Player movement](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/bgame/bg_pmove.cpp): `src/bgame/bg_pmove.cpp`

### Client runtime

- [Client runtime](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/client/cl_main.cpp): `src/client/cl_main.cpp`
- [Single-player client](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/cgame/cg_main.cpp): `src/cgame/cg_main.cpp`
- [Multiplayer client](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/cgame_mp/cg_main_mp.cpp): `src/cgame_mp/cg_main_mp.cpp`

### Rendering and effects

- [D3D renderer](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/gfx_d3d/r_rendercmds.cpp): `src/gfx_d3d/r_rendercmds.cpp`
- [Render workers](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/gfx_d3d/r_workercmds.cpp): `src/gfx_d3d/r_workercmds.cpp`
- [Effects system](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/EffectsCore/fx_system.cpp): `src/EffectsCore/fx_system.cpp`

### World and physics

- [Dynamic entities](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/DynEntity/DynEntity_client.cpp): `src/DynEntity/DynEntity_client.cpp`
- [Breakable glass](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/glass/glass_client.cpp): `src/glass/glass_client.cpp`
- [Vehicle control](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/vehicle/nitrous_vehicle_controller.cpp): `src/vehicle/nitrous_vehicle_controller.cpp`
- [Ragdoll controllers](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/ragdoll/ragdoll_controller.cpp): `src/ragdoll/ragdoll_controller.cpp`
- [Asset database](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/database/db_load.cpp): `src/database/db_load.cpp`

### Online services

- [DemonWare storage](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/DW/dwStorage.cpp): `src/DW/dwStorage.cpp`
- [Steam remote storage API](https://github.com/misadev4/bo1-zombies-decompiled/blob/main/src/steam/isteamremotestorage.h): `src/steam/isteamremotestorage.h`

### Other components

- **Player**
- **Modder**

## Connections

- Player → Client runtime: provides input
- Client runtime → Single-player client: runs client
- Single-player client → D3D renderer: presents frame
- Player → Single-player game: plays
- Player → Multiplayer client: plays
- Multiplayer client → Multiplayer game: exchanges game state
- Single-player game → Player movement: uses movement
- Multiplayer game → Player movement: uses movement
- Script commands → Multiplayer game: imports declarations (evidence: `src/game_mp/g_client_script_cmd_mp.cpp`)
- Script commands → Player movement: uses gameplay code
- Dynamic entities → Breakable glass: interacts with
- Vehicle control → Multiplayer game: imports declarations (evidence: `src/vehicle/nitrous_vehicle_controller.cpp`)
- Vehicle control → Single-player client: imports declarations (evidence: `src/vehicle/nitrous_vehicle_controller.cpp`)
- Ragdoll controllers → D3D renderer: updates pose
- D3D renderer → Render workers: dispatches work
- Render workers → Effects system: registers effects worker (evidence: `src/gfx_d3d/r_workercmds.cpp`)
- Dynamic entities → Asset database: loads entity data
- DemonWare storage → Steam remote storage API: separate storage interface
- Modder → Client runtime: modifies engine
