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

This commit is contained in:
RD42 2024-11-02 22:42:58 +08:00
parent f4121ea14f
commit a7ffe33721
2 changed files with 13 additions and 0 deletions

View File

@ -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() void CPlayerPed::StartJetpack()
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -108,6 +108,8 @@ public:
BOOL HasHandsUp(); BOOL HasHandsUp();
void HoldItem(int iObject); void HoldItem(int iObject);
BOOL IsJumping();
float GetAimZ(); float GetAimZ();
void SetAimZ(float fAimZ); void SetAimZ(float fAimZ);