mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Fix and match CheatProcessorHook()
This commit is contained in:
parent
302705ab51
commit
88e1d25bf1
@ -21,6 +21,7 @@ BYTE *pbyteCurrentPlayer = (BYTE *)0xB7CD74;
|
|||||||
PED_TYPE pedCrimeReportTemp{}; // pay attention! used in 0x100A1790 ; void __thiscall CGame::PlayCrimeReport as pedCrimeReportTemp 0x10150D00
|
PED_TYPE pedCrimeReportTemp{}; // pay attention! used in 0x100A1790 ; void __thiscall CGame::PlayCrimeReport as pedCrimeReportTemp 0x10150D00
|
||||||
|
|
||||||
int iRadarColor1=0;
|
int iRadarColor1=0;
|
||||||
|
DWORD dwSavedCheatFn=0;
|
||||||
|
|
||||||
float fFarClip=1400.0f;
|
float fFarClip=1400.0f;
|
||||||
|
|
||||||
@ -329,6 +330,7 @@ NUDE CheatProcessorHook()
|
|||||||
{
|
{
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
|
mov dwSavedCheatFn, eax
|
||||||
pushad
|
pushad
|
||||||
|
|
||||||
// CCheat::m_bHasPlayerCheated = true
|
// CCheat::m_bHasPlayerCheated = true
|
||||||
@ -425,8 +427,6 @@ NUDE CProjectile_Update_Hook()
|
|||||||
test ecx, ecx //
|
test ecx, ecx //
|
||||||
jnz dont_delete // if the owner == nullptr, delete the projectile
|
jnz dont_delete // if the owner == nullptr, delete the projectile
|
||||||
|
|
||||||
pushad
|
|
||||||
|
|
||||||
// delete projectile CProjectileInfo::RemoveIfThisIsAProjectile
|
// delete projectile CProjectileInfo::RemoveIfThisIsAProjectile
|
||||||
push dwProjectileObject
|
push dwProjectileObject
|
||||||
mov eax, 0x739A40
|
mov eax, 0x739A40
|
||||||
|
Loading…
x
Reference in New Issue
Block a user