mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CGame::DisableEnterExits()
This commit is contained in:
parent
e79a03a240
commit
fe3c24967d
@ -959,3 +959,26 @@ void CGame::EnableStuntBonus(bool bEnable)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CGame::DisableEnterExits()
|
||||||
|
{
|
||||||
|
DWORD pEnExPool = *(DWORD *)0x96A7D8;
|
||||||
|
DWORD pEnExEntries = *(DWORD *)pEnExPool;
|
||||||
|
|
||||||
|
int iNumEnEx=0;
|
||||||
|
int x=0;
|
||||||
|
|
||||||
|
_asm mov ecx, pEnExPool
|
||||||
|
_asm mov eax, [ecx+8]
|
||||||
|
_asm mov iNumEnEx, eax
|
||||||
|
|
||||||
|
BYTE *pEnExPoolSlot;
|
||||||
|
while(x!=iNumEnEx) {
|
||||||
|
pEnExPoolSlot = (((BYTE *)pEnExEntries) + (60*x));
|
||||||
|
_asm mov eax, pEnExPoolSlot
|
||||||
|
_asm and word ptr [eax+48], 0
|
||||||
|
x++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -108,6 +108,7 @@ public:
|
|||||||
int GetScreenHeight() { return *(int*)0xC17048; };
|
int GetScreenHeight() { return *(int*)0xC17048; };
|
||||||
|
|
||||||
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
||||||
|
void DisableEnterExits();
|
||||||
|
|
||||||
CGame();
|
CGame();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user