mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-07-19 01:48:56 +08:00
[saco] Implement/match CPlayerPed::HasHandsUp()
This commit is contained in:
@ -927,6 +927,20 @@ void CPlayerPed::HandsUp()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
BOOL CPlayerPed::HasHandsUp()
|
||||||
|
{
|
||||||
|
if(!m_pPed || IN_VEHICLE(m_pPed)) return FALSE;
|
||||||
|
if(!IsAdded()) return FALSE;
|
||||||
|
if(!GamePool_Ped_GetAt(m_dwGTAId)) return FALSE;
|
||||||
|
if(m_pPed->Tasks->pdwJumpJetPack == NULL) return FALSE;
|
||||||
|
DWORD dwJmpVtbl = m_pPed->Tasks->pdwJumpJetPack[0];
|
||||||
|
if(dwJmpVtbl == 0x85A29C) return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
void CPlayerPed::StartJetpack()
|
void CPlayerPed::StartJetpack()
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -98,6 +98,7 @@ public:
|
|||||||
void ProcessVehicleHorn();
|
void ProcessVehicleHorn();
|
||||||
|
|
||||||
void HandsUp();
|
void HandsUp();
|
||||||
|
BOOL HasHandsUp();
|
||||||
|
|
||||||
float GetAimZ();
|
float GetAimZ();
|
||||||
void SetAimZ(float fAimZ);
|
void SetAimZ(float fAimZ);
|
||||||
|
Reference in New Issue
Block a user