mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement/match DisableMousePositionUpdate()
This commit is contained in:
parent
7cc348d2c4
commit
bc7a9114a0
@ -13,6 +13,7 @@ BOOL ApplyPreGamePatches();
|
|||||||
void ApplyInGamePatches();
|
void ApplyInGamePatches();
|
||||||
void InitAnimNameHashes();
|
void InitAnimNameHashes();
|
||||||
|
|
||||||
|
DWORD dwDummyActiveMouseState;
|
||||||
char *szGameTextMessage;
|
char *szGameTextMessage;
|
||||||
HWND hWindowHandle;
|
HWND hWindowHandle;
|
||||||
|
|
||||||
@ -179,6 +180,21 @@ void UpdatePads()
|
|||||||
_asm call edx
|
_asm call edx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DisableMousePositionUpdate()
|
||||||
|
{
|
||||||
|
//*(DWORD*)0xB7340C = 0;
|
||||||
|
//*(DWORD*)0xB73410 = 0;
|
||||||
|
//*(DWORD*)0xB73414 = 0;
|
||||||
|
memset((PVOID)0xB7340C,0,12);
|
||||||
|
|
||||||
|
UnFuck(0x53F47A,4);
|
||||||
|
UnFuck(0x53F49A,4);
|
||||||
|
UnFuck(0x53F4B3,4);
|
||||||
|
*(DWORD*)0x53F47A = (DWORD)&dwDummyActiveMouseState;
|
||||||
|
*(DWORD*)0x53F49A = (DWORD)&dwDummyActiveMouseState;
|
||||||
|
*(DWORD*)0x53F4B3 = (DWORD)&dwDummyActiveMouseState;
|
||||||
|
}
|
||||||
|
|
||||||
void CGame::InitGame()
|
void CGame::InitGame()
|
||||||
{
|
{
|
||||||
// Create a buffer for game text.
|
// Create a buffer for game text.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user