diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index dc7bf95..5a1876d 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -957,6 +957,17 @@ void CPlayerPed::HoldItem(int iObject) //----------------------------------------------------------- +BOOL CPlayerPed::IsJumping() +{ + if(m_pPed && !IN_VEHICLE(m_pPed) && m_pPed->Tasks->pdwJumpJetPack) + { + return GetTaskTypeFromTask(m_pPed->Tasks->pdwJumpJetPack) == 211; + } + return FALSE; +} + +//----------------------------------------------------------- + void CPlayerPed::StartJetpack() { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 0231639..79e0b4f 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -108,6 +108,8 @@ public: BOOL HasHandsUp(); void HoldItem(int iObject); + BOOL IsJumping(); + float GetAimZ(); void SetAimZ(float fAimZ);