[saco] Implement/match CPlayerPed::StartJetpack()

This commit is contained in:
RD42 2024-08-11 23:37:07 +08:00
parent 939bc77912
commit 29ec3c70e4
2 changed files with 18 additions and 0 deletions

View File

@ -432,6 +432,23 @@ void CPlayerPed::SetMoney(int iAmount)
//-----------------------------------------------------------
void CPlayerPed::StartJetpack()
{
if(!m_pPed) return;
*pbyteCurrentPlayer = m_bytePlayerNumber;
// reset CTasks so the CJetPack task priority can be enforced
TeleportTo(m_pPed->entity.mat->pos.X, m_pPed->entity.mat->pos.Y, m_pPed->entity.mat->pos.Z);
_asm mov eax, 0x439600
_asm call eax
*pbyteCurrentPlayer = 0;
}
//-----------------------------------------------------------
void CPlayerPed::StopJetpack()
{
if(!m_pPed || IN_VEHICLE(m_pPed)) return;

View File

@ -53,6 +53,7 @@ public:
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
void StartJetpack();
void StopJetpack();
BOOL IsInJetpackMode();