[saco] Implement/match CPlayerPed::SetAimZ(...)

This commit is contained in:
RD42 2024-10-15 17:11:37 +08:00
parent 771c1b00c8
commit 75d5dcc38d
2 changed files with 14 additions and 0 deletions

View File

@ -900,3 +900,16 @@ float CPlayerPed::GetAimZ()
//-----------------------------------------------------------
void CPlayerPed::SetAimZ(float fAimZ)
{
if(_isnan(fAimZ) || (fAimZ > 100.0f || fAimZ < -100.0f)) return;
if(m_pPed) {
DWORD dwPlayerInfo = m_pPed->dwPlayerInfoOffset;
_asm mov eax, dwPlayerInfo
_asm mov ebx, fAimZ
_asm mov [eax+84], ebx
}
}
//-----------------------------------------------------------

View File

@ -88,6 +88,7 @@ public:
//char _gap0[741];
int field_48;
float GetAimZ();
void SetAimZ(float fAimZ);
int field_4C[10];
struc_97 field_74[10];