mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 12:16:15 +08:00
[saco] Implement/match CGame::DisableEnterExits()
This commit is contained in:
@ -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; };
|
||||
|
||||
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
||||
void DisableEnterExits();
|
||||
|
||||
CGame();
|
||||
|
||||
|
Reference in New Issue
Block a user