mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Implement CTaskTakeDamageFall constructor
This commit is contained in:
1 parent
b5e5b572d9
commit
e600a29d0c
2 files changed
+28
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,3 +41,10 @@ public:
|
||||
~CTaskJetpack();
|
||||
};
|
||||
|
||||
class CTaskTakeDamageFall :
|
||||
public CTask
|
||||
{
|
||||
public:
|
||||
CTaskTakeDamageFall(DWORD dwFallType, DWORD dwNum);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user