mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 00:10:39 +00:00
[saco] Implement/match CPlayerPed::IsJumping()
This commit is contained in:
parent
f4121ea14f
commit
a7ffe33721
@ -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;
|
||||
|
@ -108,6 +108,8 @@ public:
|
||||
BOOL HasHandsUp();
|
||||
void HoldItem(int iObject);
|
||||
|
||||
BOOL IsJumping();
|
||||
|
||||
float GetAimZ();
|
||||
void SetAimZ(float fAimZ);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user