Hello. I'm trying to understand how you can get a pointer to each element in the transport pool.
I climbed the sites, I found this:
0xB6F980 - Pointer to the beginning of the transport pool (CVehicle)
CVehicle
Each transport as an object is equal to 2584 (0xA18) bytes and starts with 0xC502AA0.
0xB74494 - Contains a pointer. This index:
+0 = Contains a pointer to the first element in the CVehicle pool
+4 = Contains a pointer to the byte map showing which elements are currently used in the CVehicle pool
+8 = [dword] the maximum number of items in the CVehicle pool
+12 = [dword] the current number of items in the CVehicle pool
I just realized (using 0xB74494 + 8) - that the maximum CVehicle can be 710.
How can I get a pointer to, for example, the 5th or 10th element (from 710) of this pool?
Type, 0xB6F980 + 5 / 0xB6F980 + 10?
Help, please, I do not know where to write any more
I climbed the sites, I found this:
0xB6F980 - Pointer to the beginning of the transport pool (CVehicle)
CVehicle
Each transport as an object is equal to 2584 (0xA18) bytes and starts with 0xC502AA0.
0xB74494 - Contains a pointer. This index:
+0 = Contains a pointer to the first element in the CVehicle pool
+4 = Contains a pointer to the byte map showing which elements are currently used in the CVehicle pool
+8 = [dword] the maximum number of items in the CVehicle pool
+12 = [dword] the current number of items in the CVehicle pool
I just realized (using 0xB74494 + 8) - that the maximum CVehicle can be 710.
How can I get a pointer to, for example, the 5th or 10th element (from 710) of this pool?
Type, 0xB6F980 + 5 / 0xB6F980 + 10?
Help, please, I do not know where to write any more