[saco] Implement/match CPlayerPed::GetAimZ()

This commit is contained in:
RD42 2024-10-15 17:11:01 +08:00
parent 1339b0159c
commit 771c1b00c8
2 changed files with 20 additions and 0 deletions

View File

@ -882,3 +882,21 @@ BOOL CPlayerPed::HasGoggles()
}
//-----------------------------------------------------------
float CPlayerPed::GetAimZ()
{
if(m_pPed) {
DWORD dwPlayerInfo = m_pPed->dwPlayerInfoOffset;
float fAimZ;
_asm mov eax, dwPlayerInfo
_asm mov ebx, [eax+84]
_asm mov fAimZ, ebx
return fAimZ;
}
return 0.0f;
}
//-----------------------------------------------------------

View File

@ -87,6 +87,8 @@ public:
//char _gap0[813];
//char _gap0[741];
int field_48;
float GetAimZ();
int field_4C[10];
struc_97 field_74[10];
int field_27C[10];