mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement CTaskTakeDamageFall constructor
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user