mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match FlushPedIntelligence()
This commit is contained in:
parent
95de44a434
commit
8ad4f28567
@ -66,6 +66,21 @@ void CActorPed::Destroy()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
DWORD dwActorPed=0;
|
||||
|
||||
BOOL __declspec(naked) FlushPedIntelligence()
|
||||
{
|
||||
_asm mov edx, dwActorPed
|
||||
_asm mov ecx, [edx+0x47C]
|
||||
_asm push 1
|
||||
_asm mov eax, 0x601640
|
||||
_asm call eax
|
||||
_asm mov eax, 1
|
||||
_asm ret
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
float CActorPed::GetHealth()
|
||||
{
|
||||
if(!m_pPed) return 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user