# sortileges/iw4cine architecture

> Architecture diagram of the GitHub repository sortileges/iw4cine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sortileges/iw4cine
- Repository: https://github.com/sortileges/iw4cine

## Overview

IW4cine is a multiplayer cinematic mod for MW2, intended to help video editors create cinematic shots. Its documented interaction model is player commands backed by new dvars: command-associated script functions wait for notifications before running. The tree names command, player, bot, actor, UI, hook, and utility modules, but no source excerpts were provided, so their specific responsibilities and call relationships cannot be verified. The graph therefore shows only the documented command-to-script relationship and keeps the named modules as distinct components.

Main entry points: [`Cinematic mod/scripts/commands.gsc`](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/commands.gsc) (Player Commands), [`Cinematic mod/scripts`](https://github.com/sortileges/iw4cine/tree/master/Cinematic%20mod/scripts) (Command Functions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Command Interaction"]
  node_commands["Player Commands<br/>[commands.gsc]"]
end

subgraph group_runtime["Game Runtime"]
  node_script_functions["Command Functions"]
  node_start["Startup<br/>[start.gsc]"]
  node_player["Player Logic<br/>[player.gsc]"]
  node_bots["Bot Logic<br/>[bots.gsc]"]
  node_actors["Actor Logic<br/>[actors.gsc]"]
  node_hooks["Game Hooks<br/>[hooks.gsc]"]
  node_ui["User Interface<br/>[ui.gsc]"]
  node_maths["Math Utilities<br/>[maths.gsc]"]
  node_misc["Miscellaneous Logic<br/>[misc.gsc]"]
  node_utils["Utilities<br/>[utils.gsc]"]
end

subgraph group_assets["Mod Assets"]
  node_defaults["Default Settings<br/>[defaults.gsc]"]
  node_precache["Precached Assets<br/>[precache.gsc]"]
  node_bot_list["Bot Definitions<br/>[bots.txt]"]
end

node_editor(("Video Editor"))
node_mw2(("MW2 Multiplayer"))

node_editor -->|"uses commands"| node_commands
node_commands -->|"notifies functions"| node_script_functions
node_mw2 -->|"hosts mod"| node_commands

click node_commands "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/commands.gsc"
click node_script_functions "https://github.com/sortileges/iw4cine/tree/master/Cinematic%20mod/scripts"
click node_start "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/start.gsc"
click node_player "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/player.gsc"
click node_bots "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/bots.gsc"
click node_actors "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/actors.gsc"
click node_hooks "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/hooks.gsc"
click node_ui "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/ui.gsc"
click node_maths "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/maths.gsc"
click node_misc "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/misc.gsc"
click node_utils "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/utils.gsc"
click node_defaults "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/defaults.gsc"
click node_precache "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/precache.gsc"
click node_bot_list "https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/bots.txt"

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_commands toneBlue
class node_script_functions,node_start,node_player,node_bots,node_actors,node_hooks,node_ui,node_maths,node_misc,node_utils toneAmber
class node_defaults,node_precache,node_bot_list toneMint
class node_editor,node_mw2 toneIndigo
```

## Components

### Command Interaction

- [Player Commands](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/commands.gsc): `Cinematic mod/scripts/commands.gsc`

### Game Runtime

- [Command Functions](https://github.com/sortileges/iw4cine/tree/master/Cinematic%20mod/scripts): `Cinematic mod/scripts`
- [Startup](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/start.gsc): `Cinematic mod/scripts/start.gsc`
- [Player Logic](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/player.gsc): `Cinematic mod/scripts/player.gsc`
- [Bot Logic](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/bots.gsc): `Cinematic mod/scripts/bots.gsc`
- [Actor Logic](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/actors.gsc): `Cinematic mod/scripts/actors.gsc`
- [Game Hooks](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/hooks.gsc): `Cinematic mod/scripts/hooks.gsc`
- [User Interface](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/ui.gsc): `Cinematic mod/scripts/ui.gsc`
- [Math Utilities](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/maths.gsc): `Cinematic mod/scripts/maths.gsc`
- [Miscellaneous Logic](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/misc.gsc): `Cinematic mod/scripts/misc.gsc`
- [Utilities](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/scripts/utils.gsc): `Cinematic mod/scripts/utils.gsc`

### Mod Assets

- [Default Settings](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/defaults.gsc): `Cinematic mod/defaults.gsc`
- [Precached Assets](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/precache.gsc): `Cinematic mod/precache.gsc`
- [Bot Definitions](https://github.com/sortileges/iw4cine/blob/master/Cinematic%20mod/bots.txt): `Cinematic mod/bots.txt`

### Other components

- **Video Editor**
- **MW2 Multiplayer**

## Connections

- Video Editor → Player Commands: uses commands (evidence: `README.md`)
- Player Commands → Command Functions: notifies functions (evidence: `README.md`)
- MW2 Multiplayer → Player Commands: hosts mod (evidence: `README.md`)
