[saco] Implement CTaskTakeDamageFall constructor

This commit is contained in:
RD42
2024-05-02 21:49:48 +08:00
parent b5e5b572d9
commit e600a29d0c
2 changed files with 28 additions and 0 deletions
+21
View File
@@ -316,3 +316,24 @@ CTaskJetpack::~CTaskJetpack()
CTask::Destroy();
}
//==========================================================
// TAKE_DAMAGE_FALL TASK
CTaskTakeDamageFall::CTaskTakeDamageFall(DWORD dwFallType, DWORD dwNum)
{
m_pPlayerPed = NULL;
Create(24);
BYTE *pTaskType = m_pTaskType;
__asm
{
push dwNum;
push 0;
push dwFallType;
mov ecx, pTaskType;
mov eax, 0x6786C0;
call eax; // CTaskTakeDamageFall_ctor2
}
}