[saco] Implement/match CGame::DisableWeaponLockOnTarget()

This commit is contained in:
RD42 2024-08-14 23:19:48 +08:00
parent d4a2816fe2
commit 59813fcf6a
2 changed files with 16 additions and 0 deletions

View File

@ -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;
}
//-----------------------------------------------------------

View File

@ -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();
}; };
//----------------------------------------------------------- //-----------------------------------------------------------