mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Implement/match CPlayerPed::IsJumping()
This commit is contained in:
1 parent
f4121ea14f
commit
a7ffe33721
2 files changed
+13
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user