mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement/match CPlayerPed::IsInJetpackMode()
This commit is contained in:
parent
9fc8409232
commit
3bb1a5c63d
@ -432,6 +432,20 @@ void CPlayerPed::SetMoney(int iAmount)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CPlayerPed::IsInJetpackMode()
|
||||
{
|
||||
if(!m_pPed || IN_VEHICLE(m_pPed)) return FALSE;
|
||||
if(m_pPed->Tasks->pdwJumpJetPack == NULL) return FALSE;
|
||||
|
||||
DWORD dwJmpVtbl = m_pPed->Tasks->pdwJumpJetPack[0];
|
||||
|
||||
if(dwJmpVtbl == 0x8705C4) return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::StartGoggles()
|
||||
{
|
||||
if (HasGoggles()) return;
|
||||
|
@ -53,6 +53,8 @@ public:
|
||||
|
||||
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
|
||||
|
||||
BOOL IsInJetpackMode();
|
||||
|
||||
void StartGoggles();
|
||||
void StopGoggles();
|
||||
BOOL HasGoggles();
|
||||
|
Loading…
Reference in New Issue
Block a user