From 88e1d25bf1ccfa4b0c753caf5b467d8a1d9401a0 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:07:09 +0800 Subject: [PATCH] [saco] Fix and match `CheatProcessorHook()` --- saco/game/hooks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saco/game/hooks.cpp b/saco/game/hooks.cpp index fcaf7a2..6c5bace 100644 --- a/saco/game/hooks.cpp +++ b/saco/game/hooks.cpp @@ -21,6 +21,7 @@ BYTE *pbyteCurrentPlayer = (BYTE *)0xB7CD74; PED_TYPE pedCrimeReportTemp{}; // pay attention! used in 0x100A1790 ; void __thiscall CGame::PlayCrimeReport as pedCrimeReportTemp 0x10150D00 int iRadarColor1=0; +DWORD dwSavedCheatFn=0; float fFarClip=1400.0f; @@ -329,6 +330,7 @@ NUDE CheatProcessorHook() { __asm { + mov dwSavedCheatFn, eax pushad // CCheat::m_bHasPlayerCheated = true @@ -425,8 +427,6 @@ NUDE CProjectile_Update_Hook() test ecx, ecx // jnz dont_delete // if the owner == nullptr, delete the projectile - pushad - // delete projectile CProjectileInfo::RemoveIfThisIsAProjectile push dwProjectileObject mov eax, 0x739A40