Offset for BonePositions

Prefixobjekt

Active member
Joined
Aug 1, 2014
Messages
55
Reaction score
0
Hello

I have a question to bone position.
how can i get the bone position of the target actor?

i can get the target actor myself.
exists there any offset/address for head position etc?

thank you.
 

uwe1337

Active member
Joined
Feb 4, 2014
Messages
36
Reaction score
0
http://www.gtamodding.com/?title=Memory_Addresses_(SA)
could help this?
 

Prefixobjekt

Active member
Joined
Aug 1, 2014
Messages
55
Reaction score
0
i found some Offsets for this

void *pHead; /* 1168 */
void *pLeftArm; /* 1172 */
void *pRightArm; /* 1176 */
void *pLeftLowArm; /* 1180 */
void *pRightLowArm; /* 1184 */
void *pLeftLeg; /* 1188 */
void *pRightLeg; /* 1192 */
void *pLeftLowLeg; /* 1196 */
void *pRightLowLeg; /* 1200 */
void *pRightMidLeg; /* 1204 */
void *pLeftMidLeg; /* 1208 */
void *pLeftMidArm; /* 1212 */
void *pRightMidArm; /* 1216 */
void *pLeftShoulder; /* 1220 */
void *pRightShoulder; /* 1224 */
void *pChest; /* 1228 */
void *pMouth; /* 1232 */


how to read them?

i test it with the Player pointer 0xB6F5F0

0xB6F5F0 + 0x490 ( 0x490 = pHead 1168)
0x30 for X
0x34 for Y
0x38 for Z

Returns me this values:

x 0.030817        y 0.089300          z -0.002549

did i read the false pointers?
 
Joined
Feb 18, 2005
Messages
2,964
Reaction score
269
Prefixobjekt link said:
x 0.030817        y 0.089300          z -0.002549
Could be relative position from the point of origin, so you need to transform them to world coords.

But there's a function to get the bones pos.
#define FUNC_GetBonePosition  0x5E4280 (cped, vector, boneID, some bool)
 

PeterL

Member
Joined
Dec 26, 2014
Messages
16
Reaction score
0
You just need to add it to the normal coords
[member=23785]Prefixobjekt[/member]
Do you have the other body part  Id´s like 0x490?
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
can some one just give an example for the head position?
 

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
whoonga link said:
can some one just give an example for the head position?

bone IDS
Code:
1 - spine 2
2 - head
3 - left upper arm
4 - right upper arm
5 - left hand
6 - right hand
7 - left thigh
8 - right thigh
9 - left foot
10 - right foot
11 - right calf
12 - left calf
13 - left fore arm
14 - right fore arm
15 - left clavicle
16 - right clavicle
17 - neck
18 - jaw

GetBonePosition
Code:
void GetBonePosition(CPed* ped, Vector& vOut, unsigned int boneId, bool updateSkinBones)
{
	typedef void(__thiscall* tGetBonePos)(CPed*, Vector&, unsigned int, bool);
	tGetBonePos GetBonePos = (tGetBonePos)0x5E4280;
	return GetBonePos(ped, vOut, boneId, updateSkinBones);
}

Code:
example 
CPed* ped = FindPlayerPed(-1);
Vector vHead;
GetBonePosition(ped, vHead, 2, true);

//vhead is now ur bone pos
i just made that out my ass, but that should probably work lol
you should get the GTA SDK, theres already a function in there to work wit
 
Top