mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match CPlayerPed::GetTransformedBonePosition(...)
This commit is contained in:
@ -1106,3 +1106,23 @@ VECTOR* CPlayerPed::GetBonePosition(int iBone, VECTOR *vecPos)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
VECTOR* CPlayerPed::GetTransformedBonePosition(int iBone, VECTOR *vecOffset)
|
||||||
|
{
|
||||||
|
if(!m_pPed) return NULL;
|
||||||
|
if(m_pPed->entity.vtable == 0x863C40) return NULL;
|
||||||
|
|
||||||
|
DWORD dwPedPtr = (DWORD)m_pPed;
|
||||||
|
VECTOR* vecResult;
|
||||||
|
|
||||||
|
_asm push 0
|
||||||
|
_asm push iBone
|
||||||
|
_asm push vecOffset
|
||||||
|
_asm mov ecx, dwPedPtr
|
||||||
|
_asm mov edx, 0x5E01C0 ; CPed__GetTransformedBonePosition
|
||||||
|
_asm call edx
|
||||||
|
_asm mov vecResult, eax
|
||||||
|
|
||||||
|
return vecResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
@ -105,6 +105,7 @@ public:
|
|||||||
void SetWeaponSkillLevel(int iSkill, float fLevel);
|
void SetWeaponSkillLevel(int iSkill, float fLevel);
|
||||||
|
|
||||||
VECTOR* GetBonePosition(int iBone, VECTOR *vecPos);
|
VECTOR* GetBonePosition(int iBone, VECTOR *vecPos);
|
||||||
|
VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset);
|
||||||
|
|
||||||
//char _gap0[813];
|
//char _gap0[813];
|
||||||
//char _gap0[741];
|
//char _gap0[741];
|
||||||
|
Reference in New Issue
Block a user