mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
this is better
This commit is contained in:
parent
868256f690
commit
06a018f9aa
1 changed files with 3 additions and 3 deletions
|
@ -4291,9 +4291,9 @@ void Patch_SA_NewSteam_Common()
|
||||||
|
|
||||||
// AI accuracy issue
|
// AI accuracy issue
|
||||||
{
|
{
|
||||||
auto patternie = pattern( "8B 82 8C 05 00 00 85 C0 74 09" ).count(1); // 0x76DEA7 in newsteam r1
|
auto match = pattern( "8B 82 8C 05 00 00 85 C0 74 09" ).get_one(); // 0x76DEA7 in newsteam r1
|
||||||
Nop(patternie.get(0).get<int>(0), 1);
|
Nop(match.get<int>(0), 1);
|
||||||
InjectHook( patternie.get(0).get<int>(1), WeaponRangeMult_VehicleCheck, PATCH_CALL );
|
InjectHook( match.get<int>(1), WeaponRangeMult_VehicleCheck, PATCH_CALL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue