mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CPlayerPed::DestroyFollowPedTask()
This commit is contained in:
parent
42647cce48
commit
1b62a8d3c4
@ -89,6 +89,9 @@ typedef struct _PED_TASKS_TYPE
|
|||||||
// Extended Tasks
|
// Extended Tasks
|
||||||
DWORD * pdwFighting;
|
DWORD * pdwFighting;
|
||||||
|
|
||||||
|
char _gap1C[16];
|
||||||
|
|
||||||
|
DWORD * pdwIK;
|
||||||
} PED_TASKS_TYPE;
|
} PED_TASKS_TYPE;
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
@ -1265,7 +1265,7 @@ void CPlayerPed::ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
|
|||||||
DWORD dwPed = (DWORD)m_pPed;
|
DWORD dwPed = (DWORD)m_pPed;
|
||||||
if(!dwPed) return;
|
if(!dwPed) return;
|
||||||
|
|
||||||
_asm push p9
|
_asm push p9
|
||||||
_asm push p8
|
_asm push p8
|
||||||
_asm push p7
|
_asm push p7
|
||||||
_asm push p6
|
_asm push p6
|
||||||
@ -1283,6 +1283,24 @@ void CPlayerPed::ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
DWORD dwExt4;
|
||||||
|
|
||||||
|
void CPlayerPed::DestroyFollowPedTask()
|
||||||
|
{
|
||||||
|
if(!m_pPed) return;
|
||||||
|
dwExt4 = (DWORD)m_pPed->Tasks->pdwIK;
|
||||||
|
if(!dwExt4) return;
|
||||||
|
|
||||||
|
_asm mov ecx, dwExt4
|
||||||
|
_asm mov edx, 0x639330
|
||||||
|
_asm push 1
|
||||||
|
_asm call edx
|
||||||
|
|
||||||
|
m_pPed->Tasks->pdwIK = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
void CPlayerPed::ProcessVehicleHorn()
|
void CPlayerPed::ProcessVehicleHorn()
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -113,6 +113,8 @@ public:
|
|||||||
void ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
|
void ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
|
||||||
VECTOR *p4, int p5, float p6, int p7, int p8, int p9);
|
VECTOR *p4, int p5, float p6, int p7, int p8, int p9);
|
||||||
|
|
||||||
|
void DestroyFollowPedTask();
|
||||||
|
|
||||||
BOOL IsJumping();
|
BOOL IsJumping();
|
||||||
BOOL IsFighting();
|
BOOL IsFighting();
|
||||||
BOOL IsFalling();
|
BOOL IsFalling();
|
||||||
|
Loading…
Reference in New Issue
Block a user