mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08: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()
|
void CPlayerPed::StartJetpack()
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user