Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cars
- 0xB74494 contains a pointer. This pointer:
- +0 contains a pointer to the first element in the pool.
- +8 [DWord] is the maximum number of elements in the pool.
- +12 [DWord] is the current number of elements in the pool.
- +32 is the vehicle pool start.
- For each vehicle in the pool:
- +20 contains a pointer to the rotation/position matrix (84 Bytes).
- +0 [Float] = X-axis Rotation (Grad)
- +4 [Float] = Y-axis Rotation (Grad)
- +8 [Float] = Z-axis Rotation (Grad)
- +16 [Float] = X-axis Rotation (Looking)
- +20 [Float] = Y-axis Rotation (Looking)
- +24 [Float] = Z-axis Rotation (Looking)
- +48 [Float] = X-axis Position
- +52 [Float] = Y-axis Position
- +56 [Float] = Z-axis Position
- +34 [Word] Vehicle ID from vehicles.ide
- +66 [Byte] is the BP/EP/DP/DP (Special Flags) status of the car as follows:
- Add these values, and write the sum into +66
- 1 = N/A
- 2 = N/A
- 4 = Bullet-proof
- 8 = Fire-proof
- 16 = Damage-proof (from collisons etc)
- 32 = N/A
- 64 = N/A
- 128 = Explosion-proof
- +68 [Float] X (East-West) speed
- +72 [Float] Y (North-South) speed
- +76 [Float] Z (Up-Down) speed
- +80 [Float] X (NS) Spin
- +84 [Float] Y (EW) Spin
- +88 [Float] Z (NW) Spin
- Note: Do not get confused about the Spin Angles, these are NOT rotations but the angles of how fast your vehicle is turning in the given axis direction...
- (Car addresses continued:)
- +140 [Float] Mass (kg) from handling.cfg
- +144 [Float] Turn Mass from handling.cfg
- +148 [Float] Grip Divider (10.1 = 10 x gGrip / 1 = 1 x gGrip / 100 = g / 100Grip)
- +152 [Float] Mass-to-Grip Multiplier. Ie. G Force when flying/during suspension/driving (acceleration towards ground)
- +160 [Float] Normalized Grip Level
- +164 [Float] CoM X
- +168 [Float] CoM Y
- +172 [Float] CoM Z
- +1064 [Byte] Engine State - Whether the engine is running or stalled (0:Stalled, 16:OK)
- +1076 [Byte] Body Color (as in carcolors.dat, black being the 0)
- +1077 [Byte] Stripe Color (as in carcolors.dat, black being the 0)
- +1078 [Byte] Body Color #2
- +1079 [Byte] Stripe Color #2
- +1080 [DWord] modding data as in garage info
- +1084 [DWord] modding data as in garage info
- +1088 [DWord] modding data as in garage info
- +1092 [DWord] modding data as in garage info
- +1096 [DWord] modding data as in garage info
- +1100 [DWord] modding data as in garage info
- +1104 [DWord] modding data as in garage info
- +1108 [DWord] modding data as in garage info
- +1112 [Float] Car Wheel Size from vehicle.ide
- +1116 [DWord] Time left for car alarm to sound in ms
- +1120 [DWord] Pointer to driver
- +1124 [DWord] Pointer to passenger
- +1172 [Float] Steer angle 1
- +1176 [Float] Steer angle 2
- +1180 [Float] Gas pedal
- +1184 [Float] Break pedal
- +1216 [Float] Health / Car Damage Left (1000: undamaged)
- +1272 [Dword] Car Door Locked State (1:open 2:locked)
- +1445 [Byte] Car Tire (Left-Front) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
- +1446 [Byte] Car Tire (Left-Rear) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
- +1447 [Byte] Car Tire (Right-Front) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
- +1448 [Byte] Car Tire (Right-Rear) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
- +1628 [Byte] Bike Tire (Front) Status: 1:Flat, 0:OK
- +1629 [Byte] Bike Tire (Rear) Status: 1:Flat, 0:OK
- +2020 [Float] Front-Left suspension height
- +2024 [Float] Rear-Left suspension height
- +2028 [Float] Front-Right suspension height
- +2032 [Float] Rear-Right suspension height
- More addresses at: http://gtamaps.net/forum/lofiversion/index.php?t8049.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement