How maxirp/ironmanmod works
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.cpp Plugin bootstrap · JarvisVoice.cpp Iron Man controller · Movtextures.cpp Texture & shape primitives · MobileRadar.cpp Armored radar
Components 20
Build & Deployment
- Visual Studio solution
IronManMod.sln - DLL project
IronManMod/IronManMod.vcxproj - Iron Man ASI
ROOT FOLDER of GTA SA/modloader/IronManMod/IronMan_by_Maxirp.asi
GTA Plugin Runtime
- Plugin bootstrap
IronManMod/IronManMod.cpp - Shared GTA integration · Shared declarations and GTA/Plugin-SDK integration.
IronManMod/Main.hpp - GTA SA process · Provides game memory, entities, rendering, input, animation, and timer APIs.
Iron Man Gameplay
- Iron Man controller · Coordinates armor, NPCs, combat, flight, and vehicle-control state machines.
IronManMod/JarvisVoice.cpp - Controller interface
IronManMod/JarvisVoice.h - Gameplay utilities
IronManMod/Utility.cpp - BASS audio bridge · Loads maxirp.dll for voice, alerts, positional audio, and flight sound updates.
IronManMod/BASS_funcs.cpp - Settings loader · Loads HUD, radar-position, and gameplay settings.
IronManMod/Settings.cpp
HUD & Presentation
- Texture & shape primitives · Shared texture loading, drawing, and textured UI primitives.
IronManMod/Movtextures.cpp - Mobile textures
IronManMod/MobileTextures.cpp - Armor status HUD
IronManMod/MobilePlayerInfo.cpp - Armored radar · Animated radar and surrounding information display.
IronManMod/MobileRadar.cpp - GPS overlay
IronManMod/GPS.cpp - Loading & menu UI
IronManMod/MobileMenuSystem.cpp - Native UI overrides · Restyles or suppresses GTA subtitles, area, radio, and vehicle labels.
IronManMod/MobileSubtitles.cpp
External Assets & Config
- Thruster effects
ROOT FOLDER of GTA SA/models/effects/thrusters/thrusters.fxs - Modloader configuration
ROOT FOLDER of GTA SA/modloader/modloader.ini
Connections 27
- 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