Quantcast

Jump to content

» «
Photo

GTA:SA Getting Bone Position Externally

1 reply to this topic
frekons
  • frekons

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Taiwan

#1

Posted 4 weeks ago Edited by frekons, 4 weeks ago.

I'm external then i can not call the get bone pos function so i need to get they in any variable, i found some information

 

void *pNeck; /* 1164 - void* pNeck (pChest?) - 4 unknown - float height - float front/back - float left/right - void* pObject (same struct for the following body-part-pointers [except pLeft/RightArm]) */ 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 */

 

but i don't know how can i use that

 

DWORD temp = Manager.Read<DWORD>(TheEnemy + 0x48C);
DWORD temp2 = Manager.Read<DWORD>(temp + 0x10);
 
D3DXVECTOR3 headingVec = Manager.Read<D3DXVECTOR3>(temp2+ 0x30);
 
this didn't work(reading +0x10 cause i just saw somewhere object class at this pos), also
 
DWORD temp = Manager.Read<DWORD>(TheEnemy + 0x48C);
 
D3DXVECTOR3 headingVec = Manager.Read<D3DXVECTOR3>(temp + 0x30);
 
this didn't work too
 
so im wating any answer

Veryzon
  • Veryzon

    Player Hater

  • Members
  • Joined: 15 Jun 2017
  • Brazil

#2

Posted 4 weeks ago

I recommend you to use RW's procedures instead of deal with raw data of D3D. See the Plugin SDK and search for bones in ped models. https://github.com/D...ugin_sa/game_sa

 

You can ask for doubts in official server of support to Plugin SDK.

https://discord.gg/mVJcXXv





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users