From 4a6bdad74ad4023e8791e17fc027a74792e1ee34 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 2 May 2024 21:51:45 +0800 Subject: [PATCH] [saco] Implement CTaskKillPedOnFootArmed constructor --- saco/game/task.cpp | 21 +++++++++++++++++++++ saco/game/task.h | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/saco/game/task.cpp b/saco/game/task.cpp index 3872eec..c0abbfa 100644 --- a/saco/game/task.cpp +++ b/saco/game/task.cpp @@ -376,3 +376,24 @@ CTaskGoToPoint::CTaskGoToPoint(int unk, VECTOR* vecPos, float unk2, int unk3, in //----------------------------------------------------------- +CTaskKillPedOnFootArmed::CTaskKillPedOnFootArmed( int unk, int unk2, int unk3, int unk4, PED_TYPE* pToShoot ) +{ + m_pPlayerPed = NULL; + Create(92); + + BYTE* pTaskType = m_pTaskType; + __asm + { + PUSH unk + PUSH unk3 + PUSH unk2 + PUSH unk4 + push pToShoot + mov ecx, pTaskType + mov eax, 0x00621190 + call eax + } +} + +//========================================================== + diff --git a/saco/game/task.h b/saco/game/task.h index 45bc21c..8174e3c 100644 --- a/saco/game/task.h +++ b/saco/game/task.h @@ -62,3 +62,9 @@ public: CTaskGoToPoint(int unk, VECTOR* vecPos, float unk2, int unk3, int unk4 ); }; +class CTaskKillPedOnFootArmed : + public CTask +{ +public: + CTaskKillPedOnFootArmed( int unk, int unk2, int unk3, int unk4, PED_TYPE* pToShoot ); +};