mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CPlayerPed::GetAimZ()
This commit is contained in:
parent
1339b0159c
commit
771c1b00c8
@ -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;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user