mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CPlayerPed::StartJetpack()
This commit is contained in:
parent
939bc77912
commit
29ec3c70e4
@ -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;
|
||||
|
@ -53,6 +53,7 @@ public:
|
||||
|
||||
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
|
||||
|
||||
void StartJetpack();
|
||||
void StopJetpack();
|
||||
BOOL IsInJetpackMode();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user