[saco] Implement/match FlushPedIntelligence()

This commit is contained in:
RD42 2024-10-25 23:42:50 +08:00
parent 95de44a434
commit 8ad4f28567

View File

@ -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;