[saco] Implement/match CPlayerPed::ApplyCommandTask(...)

This commit is contained in:
RD42 2024-11-02 22:55:17 +08:00
parent 20c3b9f7da
commit 42647cce48
2 changed files with 27 additions and 0 deletions

View File

@ -1259,6 +1259,30 @@ void CPlayerPed::ProcessMarkers(BOOL bMarkerStreamingEnabled, float fMarkerStrea
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
VECTOR *p4, int p5, float p6, int p7, int p8, int p9)
{
DWORD dwPed = (DWORD)m_pPed;
if(!dwPed) return;
_asm push p9
_asm push p8
_asm push p7
_asm push p6
_asm push p5
_asm push p4
_asm push p3
_asm push p2
_asm push p1
_asm push dwPed
_asm push szTaskName
_asm mov ecx, 0xC15448
_asm mov edx, 0x618970
_asm call edx
}
//-----------------------------------------------------------
void CPlayerPed::ProcessVehicleHorn() void CPlayerPed::ProcessVehicleHorn()
{ {
if(!m_pPed) return; if(!m_pPed) return;

View File

@ -110,6 +110,9 @@ public:
void ProcessMarkers(BOOL bMarkerStreamingEnabled, float fMarkerStreamRadius, BOOL bVisible); void ProcessMarkers(BOOL bMarkerStreamingEnabled, float fMarkerStreamRadius, BOOL bVisible);
void ApplyCommandTask(char *szTaskName, int p1, int p2, int p3,
VECTOR *p4, int p5, float p6, int p7, int p8, int p9);
BOOL IsJumping(); BOOL IsJumping();
BOOL IsFighting(); BOOL IsFighting();
BOOL IsFalling(); BOOL IsFalling();