I am trying to read the position of the car you are currently in.
I know the basics of how memory reading works etc, but I can't properly figure out how to read the values from the vehicle's position...
I found some reference here:
There it says the following things:
|0xB6F980 - Is the direct pointer to the pool start (CVehicle)|
0xBA18FC - Current vehicle pointer
0x969084 - First vehicle you got into
xB74494 - Contains a pointer to main struct
+0 = Contains a pointer to the first element in the pool
+4 = Contains a pointer to a byte map indicating which elements are in use
+8 = [dword] Is the maximum number of elements in the pool
+12 = [dword] Is the current number of elements in the pool
Each vehicle object is 2584 (0xA18) bytes. It starts at 0xC502AA0.
For each vehicle in the pool:
+20 = [byte] 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
I tried taking where 0xBA18FC points to, then adding 68 to it, but no success...
Does anyone have any experience with this?
Thanks in advance!
I'm new here
Forgot [Q] before the title