[saco] Implement CTaskTakeDamageFall constructor

This commit is contained in:
RD42 committed 2024-05-02 21:49:48 +08:00
1 parent b5e5b572d9
commit e600a29d0c
2 files changed
+28

No files matched your search

+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
}
}
+7
View File
@@ -41,3 +41,10 @@ public:
~CTaskJetpack();
};
class CTaskTakeDamageFall :
public CTask
{
public:
CTaskTakeDamageFall(DWORD dwFallType, DWORD dwNum);
};