From c70e9f59c87580f73ae191a4aa2589121df10619 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 2 May 2024 21:50:59 +0800 Subject: [PATCH] [saco] Implement CTaskGoToPoint constructor --- saco/game/task.cpp | 21 +++++++++++++++++++++ saco/game/task.h | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/saco/game/task.cpp b/saco/game/task.cpp index c0a6c3c..3872eec 100644 --- a/saco/game/task.cpp +++ b/saco/game/task.cpp @@ -355,3 +355,24 @@ CTaskGoggles::CTaskGoggles() //----------------------------------------------------------- +CTaskGoToPoint::CTaskGoToPoint(int unk, VECTOR* vecPos, float unk2, int unk3, int unk4 ) +{ + m_pPlayerPed = NULL; + Create(48); + + BYTE* pTaskType = m_pTaskType; + __asm + { + push unk4 + push unk3 + push unk2 + push vecPos + push unk + mov ecx, pTaskType + mov eax, 0x667CD0 + call eax + } +} + +//----------------------------------------------------------- + diff --git a/saco/game/task.h b/saco/game/task.h index 8017cbd..45bc21c 100644 --- a/saco/game/task.h +++ b/saco/game/task.h @@ -55,3 +55,10 @@ public: CTaskGoggles(); }; +class CTaskGoToPoint : + public CTask +{ +public: + CTaskGoToPoint(int unk, VECTOR* vecPos, float unk2, int unk3, int unk4 ); +}; +