Skip to main content

Known Metrotrain Hardcodes

The functionality of the metrotrain is hardcoded in several areas in the game. This documents all known hardcodes (by value) and what they do.

info

Memory addresses assume IDA base is 0x140000000 and b3258. Anything else and these addresses will not be accurate.

AddressDescription
0x140F1EE60Metrotrain model check related to movement inside of trains — helps smooth movement while walking inside the metro. Without it the player clips through the roof of the carriage.
0x140FD2275Metrotrain model check. If true sets a flag that handles door controls at stations etc.
0x140248D69Something tied to cinematic camera. Not interesting, minimal effect on gameplay.
note

A PR will be made in the future to patch these hardcoded checks out in place of checks against handlinghandling.metaXML file that defines vehicle physics properties including speed, acceleration, braking, traction, and suspension behavior. ID / another form of vehicle data that isn't unique.