# maxirp/ironmanmod architecture

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

- Interactive diagram: https://gitdiagram.com/maxirp/ironmanmod
- Repository: https://github.com/maxirp/ironmanmod

## Overview

#### Purpose and Deployment

GTAIronMan is a native C++ Plugin-SDK mod for GTA: San Andreas. It builds a DLL deployed as an ASI plugin, represented in the packaged game tree by `ROOT FOLDER of GTA SA/modloader/IronManMod/IronMan_by_Maxirp.asi`. It transforms gameplay into an Iron Man experience and replaces/repositions major HUD and presentation elements.

#### Bootstrap and Game Integration

`IronManMod/IronManMod.cpp` is the primary plugin/bootstrap unit and loads most runtime dependencies. `IronManMod/Main.hpp` centralizes shared declarations and likely game/plugin SDK integration. The Visual Studio solution/project entry points are `IronManMod.sln` and `IronManMod/IronManMod.vcxproj`.

The mod executes inside the GTA SA process, so game memory, rendering, input, entities, animations, and timer APIs are the principal runtime boundary.

#### Core Iron Man Gameplay Controller

`IronManMod/JarvisVoice.cpp` is the main gameplay orchestration component despite its name. It drives armor state, suit menu, skin selection/spawning, Jarvis/Iron Legion/Ultron NPCs, combat modes, flight, thrusters, shields, destructive melee, and vehicle lifting/throwing. Its documented indexed state machine coordinates control-heavy sequences such as vehicle lifting, aerial control, aiming, and throwing.

Relevant interfaces:
- `IronManMod/JarvisVoice.cpp`
- `IronManMod/JarvisVoice.h`
- `IronManMod/Utility.cpp`

#### Audio and Effects Boundary

Audio is routed through a BASS/maxirp integration layer in `IronManMod/BASS_funcs.cpp` and `IronManMod/BASS_funcs.h`. This dynamically loads and exposes functions from `maxirp.dll` to provide Jarvis voice, alerts, alarms, positional/panned audio, and flight-related sound updates. Visual flight and impact effects are deployed as GTA effect assets, including `ROOT FOLDER of GTA SA/models/effects/thrusters/thrusters.fxs` and `ROOT FOLDER of GTA SA/models/effects/thruster_under/thruster_under.fxs`.

#### HUD, Radar, and Rendering Pipeline

The mod replaces GTA’s mobile-style HUD surfaces through specialized overlay modules. `IronManMod/Movtextures.cpp` and `IronManMod/MobileTextures.cpp` provide common texture loading/drawing; `IronManMod/ShapeHelper.cpp` supplies textured UI/text-box primitives.

Major consumers include:
- Jarvis/player status and armor display: `IronManMod/MobilePlayerInfo.cpp`, `IronManMod/MobileProgressBar.cpp`
- Animated armored radar and surrounding information: `IronManMod/MobileRadar.cpp`, `IronManMod/AreaAroundRadar.cpp`
- GPS overlay: `IronManMod/GPS.cpp`
- Loading/menu presentation: `IronManMod/MobileLoadingScreen.cpp`, `IronManMod/MobileMenuSystem.cpp`

#### Presentation Overrides

Independent modules modify native GTA text/UI behavior rather than funneling through one screen controller: `IronManMod/MobileSubtitles.cpp` alters subtitle styling and parachute prompts; `IronManMod/MobileAreaName.cpp` suppresses area display; `IronManMod/MobileRadioName.cpp` and `IronManMod/MobileVehicleName.cpp` reposition labels. `IronManMod/Main.hpp` is also identified as replacing the font file.

#### Settings and Operational Configuration

`IronManMod/Settings.cpp` loads configuration that affects interface, radar positions, and gameplay values, with declarations in `IronManMod/Settings.h`. Deployment expects GTA-side configuration and loader infrastructure, notably `ROOT FOLDER of GTA SA/modloader/modloader.ini`, `ROOT FOLDER of GTA SA/scripts/global.ini`, and external game limit-adjuster INIs. Skin/menu assets are expected under the GTA modloader hierarchy at runtime.

Main entry points: [`IronManMod/IronManMod.cpp`](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/IronManMod.cpp) (Plugin bootstrap), [`IronManMod/JarvisVoice.cpp`](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/JarvisVoice.cpp) (Iron Man controller), [`IronManMod/Movtextures.cpp`](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Movtextures.cpp) (Texture & shape primitives), [`IronManMod/MobileRadar.cpp`](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileRadar.cpp) (Armored radar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Build &amp; Deployment"]
  node_solution["Visual Studio solution<br/>build entry<br/>[IronManMod.sln]"]
  node_project["DLL project<br/>C++ project<br/>[IronManMod.vcxproj]"]
  node_asi["Iron Man ASI<br/>deployed plugin"]
end

subgraph group_runtime["GTA Plugin Runtime"]
  node_bootstrap["Plugin bootstrap<br/>plugin entry<br/>[IronManMod.cpp]"]
  node_main["Shared GTA integration<br/>SDK interface<br/>[Main.hpp]"]
  node_gta{{"GTA SA process<br/>host runtime"}}
end

subgraph group_gameplay["Iron Man Gameplay"]
  node_controller["Iron Man controller<br/>gameplay orchestrator<br/>[JarvisVoice.cpp]"]
  node_controller_api["Controller interface<br/>gameplay interface<br/>[JarvisVoice.h]"]
  node_utility["Gameplay utilities<br/>support module<br/>[Utility.cpp]"]
  node_audio["BASS audio bridge<br/>dynamic audio integration<br/>[BASS_funcs.cpp]"]
  node_settings["Settings loader<br/>configuration module<br/>[Settings.cpp]"]
end

subgraph group_presentation["HUD &amp; Presentation"]
  node_hud_primitives["Texture &amp; shape primitives<br/>rendering primitives<br/>[Movtextures.cpp]"]
  node_hud_textures["Mobile textures<br/>texture module<br/>[MobileTextures.cpp]"]
  node_status_hud["Armor status HUD<br/>HUD module"]
  node_radar["Armored radar<br/>HUD module<br/>[MobileRadar.cpp]"]
  node_gps["GPS overlay<br/>HUD module<br/>[GPS.cpp]"]
  node_menus["Loading &amp; menu UI<br/>presentation modules"]
  node_native_ui["Native UI overrides<br/>presentation overrides"]
end

subgraph group_assets["External Assets &amp; Config"]
  node_effects["Thruster effects<br/>GTA effect asset<br/>[thrusters.fxs]"]
  node_config["Modloader configuration<br/>runtime configuration<br/>[modloader.ini]"]
end

node_solution -->|"contains"| node_project
node_project -->|"builds"| node_asi
node_asi -->|"loads"| node_bootstrap
node_bootstrap -->|"uses"| node_main
node_bootstrap -->|"initializes"| node_controller
node_bootstrap -->|"loads"| node_settings
node_main -->|"integrates with"| node_gta
node_controller -->|"implements"| node_controller_api
node_controller -->|"uses"| node_utility
node_controller -->|"drives voice &amp; flight audio"| node_audio
node_controller -->|"controls gameplay"| node_gta
node_controller -->|"activates"| node_effects
node_settings -.->|"reads runtime settings"| node_config
node_hud_textures -->|"uses"| node_hud_primitives
node_status_hud -->|"renders with"| node_hud_primitives
node_radar -->|"renders with"| node_hud_primitives
node_gps -->|"renders with"| node_hud_primitives
node_menus -->|"renders with"| node_hud_primitives
node_settings -.->|"configures position"| node_radar
node_bootstrap -->|"loads"| node_status_hud
node_bootstrap -->|"loads"| node_radar
node_bootstrap -->|"loads"| node_gps
node_bootstrap -->|"loads"| node_menus
node_bootstrap -->|"loads"| node_native_ui
node_status_hud -->|"overlays"| node_gta
node_radar -->|"overlays"| node_gta
node_native_ui -->|"overrides UI"| node_gta

click node_solution "https://github.com/maxirp/ironmanmod/blob/master/IronManMod.sln"
click node_project "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/IronManMod.vcxproj"
click node_asi "https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/modloader/IronManMod/IronMan_by_Maxirp.asi"
click node_bootstrap "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/IronManMod.cpp"
click node_main "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Main.hpp"
click node_controller "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/JarvisVoice.cpp"
click node_controller_api "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/JarvisVoice.h"
click node_utility "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Utility.cpp"
click node_audio "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/BASS_funcs.cpp"
click node_settings "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Settings.cpp"
click node_hud_primitives "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Movtextures.cpp"
click node_hud_textures "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileTextures.cpp"
click node_status_hud "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobilePlayerInfo.cpp"
click node_radar "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileRadar.cpp"
click node_gps "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/GPS.cpp"
click node_menus "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileMenuSystem.cpp"
click node_native_ui "https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileSubtitles.cpp"
click node_effects "https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/models/effects/thrusters/thrusters.fxs"
click node_config "https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/modloader/modloader.ini"

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_solution,node_project,node_asi toneBlue
class node_bootstrap,node_main,node_gta toneAmber
class node_controller,node_controller_api,node_utility,node_audio,node_settings toneMint
class node_hud_primitives,node_hud_textures,node_status_hud,node_radar,node_gps,node_menus,node_native_ui toneRose
class node_effects,node_config toneIndigo
```

## Components

### Build & Deployment

- [Visual Studio solution](https://github.com/maxirp/ironmanmod/blob/master/IronManMod.sln): build entry · `IronManMod.sln`
- [DLL project](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/IronManMod.vcxproj): C++ project · `IronManMod/IronManMod.vcxproj`
- [Iron Man ASI](https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/modloader/IronManMod/IronMan_by_Maxirp.asi): deployed plugin · `ROOT FOLDER of GTA SA/modloader/IronManMod/IronMan_by_Maxirp.asi`

### GTA Plugin Runtime

- [Plugin bootstrap](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/IronManMod.cpp): plugin entry · `IronManMod/IronManMod.cpp`
- [Shared GTA integration](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Main.hpp): SDK interface · Shared declarations and GTA/Plugin-SDK integration. · `IronManMod/Main.hpp`
- **GTA SA process**: host runtime · Provides game memory, entities, rendering, input, animation, and timer APIs.

### Iron Man Gameplay

- [Iron Man controller](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/JarvisVoice.cpp): gameplay orchestrator · Coordinates armor, NPCs, combat, flight, and vehicle-control state machines. · `IronManMod/JarvisVoice.cpp`
- [Controller interface](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/JarvisVoice.h): gameplay interface · `IronManMod/JarvisVoice.h`
- [Gameplay utilities](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Utility.cpp): support module · `IronManMod/Utility.cpp`
- [BASS audio bridge](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/BASS_funcs.cpp): dynamic audio integration · Loads maxirp.dll for voice, alerts, positional audio, and flight sound updates. · `IronManMod/BASS_funcs.cpp`
- [Settings loader](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Settings.cpp): configuration module · Loads HUD, radar-position, and gameplay settings. · `IronManMod/Settings.cpp`

### HUD & Presentation

- [Texture & shape primitives](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/Movtextures.cpp): rendering primitives · Shared texture loading, drawing, and textured UI primitives. · `IronManMod/Movtextures.cpp`
- [Mobile textures](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileTextures.cpp): texture module · `IronManMod/MobileTextures.cpp`
- [Armor status HUD](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobilePlayerInfo.cpp): HUD module · `IronManMod/MobilePlayerInfo.cpp`
- [Armored radar](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileRadar.cpp): HUD module · Animated radar and surrounding information display. · `IronManMod/MobileRadar.cpp`
- [GPS overlay](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/GPS.cpp): HUD module · `IronManMod/GPS.cpp`
- [Loading & menu UI](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileMenuSystem.cpp): presentation modules · `IronManMod/MobileMenuSystem.cpp`
- [Native UI overrides](https://github.com/maxirp/ironmanmod/blob/master/IronManMod/MobileSubtitles.cpp): presentation overrides · Restyles or suppresses GTA subtitles, area, radio, and vehicle labels. · `IronManMod/MobileSubtitles.cpp`

### External Assets & Config

- [Thruster effects](https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/models/effects/thrusters/thrusters.fxs): GTA effect asset · `ROOT FOLDER of GTA SA/models/effects/thrusters/thrusters.fxs`
- [Modloader configuration](https://github.com/maxirp/ironmanmod/blob/master/ROOT%20FOLDER%20of%20GTA%20SA/modloader/modloader.ini): runtime configuration · `ROOT FOLDER of GTA SA/modloader/modloader.ini`

## Connections

- Visual Studio solution → DLL project: contains
- DLL project → Iron Man ASI: builds
- Iron Man ASI → Plugin bootstrap: loads
- Plugin bootstrap → Shared GTA integration: uses
- Plugin bootstrap → Iron Man controller: initializes
- Plugin bootstrap → Settings loader: loads
- Shared GTA integration → GTA SA process: integrates with
- Iron Man controller → Controller interface: implements
- Iron Man controller → Gameplay utilities: uses
- Iron Man controller → BASS audio bridge: drives voice & flight audio
- Iron Man controller → GTA SA process: controls gameplay
- Iron Man controller → Thruster effects: activates
- Settings loader → Modloader configuration: reads runtime settings
- Mobile textures → Texture & shape primitives: uses
- Armor status HUD → Texture & shape primitives: renders with
- Armored radar → Texture & shape primitives: renders with
- GPS overlay → Texture & shape primitives: renders with
- Loading & menu UI → Texture & shape primitives: renders with
- Settings loader → Armored radar: configures position
- Plugin bootstrap → Armor status HUD: loads
- Plugin bootstrap → Armored radar: loads
- Plugin bootstrap → GPS overlay: loads
- Plugin bootstrap → Loading & menu UI: loads
- Plugin bootstrap → Native UI overrides: loads
- Armor status HUD → GTA SA process: overlays
- Armored radar → GTA SA process: overlays
- Native UI overrides → GTA SA process: overrides UI
