mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CGame::DisableWeaponLockOnTarget()
This commit is contained in:
parent
d4a2816fe2
commit
59813fcf6a
@ -1124,3 +1124,18 @@ BOOL CGame::IsUsingController()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CGame::DisableWeaponLockOnTarget()
|
||||||
|
{
|
||||||
|
// CPlayerPed_FindWeaponLockOnTarget
|
||||||
|
UnFuck(0x60DC50,1);
|
||||||
|
*(BYTE*)0x60DC50 = 0xC3; // ret
|
||||||
|
|
||||||
|
// CPlayerPed_FindNextWeaponLockOnTarget
|
||||||
|
UnFuck(0x60E530,3);
|
||||||
|
*(BYTE*)0x60E530 = 0xC2; // retn 8
|
||||||
|
*(BYTE*)0x60E531 = 0x08;
|
||||||
|
*(BYTE*)0x60E532 = 0x00;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ public:
|
|||||||
void LoadCollisionFile(char *szFileName);
|
void LoadCollisionFile(char *szFileName);
|
||||||
void LoadCullZone(char *szLine);
|
void LoadCullZone(char *szLine);
|
||||||
BOOL IsUsingController();
|
BOOL IsUsingController();
|
||||||
|
void DisableWeaponLockOnTarget();
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user