mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CPlayerPed::SetAimZ(...)
This commit is contained in:
parent
771c1b00c8
commit
75d5dcc38d
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
@ -88,6 +88,7 @@ public:
|
|||||||
//char _gap0[741];
|
//char _gap0[741];
|
||||||
int field_48;
|
int field_48;
|
||||||
float GetAimZ();
|
float GetAimZ();
|
||||||
|
void SetAimZ(float fAimZ);
|
||||||
|
|
||||||
int field_4C[10];
|
int field_4C[10];
|
||||||
struc_97 field_74[10];
|
struc_97 field_74[10];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user