Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. Cars
  2.  
  3. 0xB74494 contains a pointer. This pointer:
  4. +0 contains a pointer to the first element in the pool.
  5. +8 [DWord] is the maximum number of elements in the pool.
  6. +12 [DWord] is the current number of elements in the pool.
  7. +32 is the vehicle pool start.
  8.  
  9. For each vehicle in the pool:
  10. +20 contains a pointer to the rotation/position matrix (84 Bytes).
  11. +0 [Float] = X-axis Rotation (Grad)
  12. +4 [Float] = Y-axis Rotation (Grad)
  13. +8 [Float] = Z-axis Rotation (Grad)
  14. +16 [Float] = X-axis Rotation (Looking)
  15. +20 [Float] = Y-axis Rotation (Looking)
  16. +24 [Float] = Z-axis Rotation (Looking)
  17. +48 [Float] = X-axis Position
  18. +52 [Float] = Y-axis Position
  19. +56 [Float] = Z-axis Position
  20. +34 [Word] Vehicle ID from vehicles.ide
  21. +66 [Byte] is the BP/EP/DP/DP (Special Flags) status of the car as follows:
  22. Add these values, and write the sum into +66
  23. 1 = N/A
  24. 2 = N/A
  25. 4 = Bullet-proof
  26. 8 = Fire-proof
  27. 16 = Damage-proof (from collisons etc)
  28. 32 = N/A
  29. 64 = N/A
  30. 128 = Explosion-proof
  31. +68 [Float] X (East-West) speed
  32. +72 [Float] Y (North-South) speed
  33. +76 [Float] Z (Up-Down) speed
  34. +80 [Float] X (NS) Spin
  35. +84 [Float] Y (EW) Spin
  36. +88 [Float] Z (NW) Spin
  37.  
  38. 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...
  39.  
  40. (Car addresses continued:)
  41. +140 [Float] Mass (kg) from handling.cfg
  42. +144 [Float] Turn Mass from handling.cfg
  43. +148 [Float] Grip Divider (10.1 = 10 x gGrip / 1 = 1 x gGrip / 100 = g / 100Grip)
  44. +152 [Float] Mass-to-Grip Multiplier. Ie. G Force when flying/during suspension/driving (acceleration towards ground)
  45. +160 [Float] Normalized Grip Level
  46. +164 [Float] CoM X
  47. +168 [Float] CoM Y
  48. +172 [Float] CoM Z
  49. +1064 [Byte] Engine State - Whether the engine is running or stalled (0:Stalled, 16:OK)
  50. +1076 [Byte] Body Color (as in carcolors.dat, black being the 0)
  51. +1077 [Byte] Stripe Color (as in carcolors.dat, black being the 0)
  52. +1078 [Byte] Body Color #2
  53. +1079 [Byte] Stripe Color #2
  54. +1080 [DWord] modding data as in garage info
  55. +1084 [DWord] modding data as in garage info
  56. +1088 [DWord] modding data as in garage info
  57. +1092 [DWord] modding data as in garage info
  58. +1096 [DWord] modding data as in garage info
  59. +1100 [DWord] modding data as in garage info
  60. +1104 [DWord] modding data as in garage info
  61. +1108 [DWord] modding data as in garage info
  62. +1112 [Float] Car Wheel Size from vehicle.ide
  63. +1116 [DWord] Time left for car alarm to sound in ms
  64. +1120 [DWord] Pointer to driver
  65. +1124 [DWord] Pointer to passenger
  66. +1172 [Float] Steer angle 1
  67. +1176 [Float] Steer angle 2
  68. +1180 [Float] Gas pedal
  69. +1184 [Float] Break pedal
  70. +1216 [Float] Health / Car Damage Left (1000: undamaged)
  71. +1272 [Dword] Car Door Locked State (1:open 2:locked)
  72. +1445 [Byte] Car Tire (Left-Front) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
  73. +1446 [Byte] Car Tire (Left-Rear) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
  74. +1447 [Byte] Car Tire (Right-Front) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
  75. +1448 [Byte] Car Tire (Right-Rear) Status: 1:Flat, 0:OK, 2:Used by planes when landing gear is up
  76. +1628 [Byte] Bike Tire (Front) Status: 1:Flat, 0:OK
  77. +1629 [Byte] Bike Tire (Rear) Status: 1:Flat, 0:OK
  78. +2020 [Float] Front-Left suspension height
  79. +2024 [Float] Rear-Left suspension height
  80. +2028 [Float] Front-Right suspension height
  81. +2032 [Float] Rear-Right suspension height
  82.  
  83. More addresses at: http://gtamaps.net/forum/lofiversion/index.php?t8049.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement