Advertising (This ad goes away for registered users. You can Login or Register)

GTA LCS EU analog stick patch

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: GTA LCS EU analog stick patch

Post by reprep »

sorry for double post but i needed to post this here.

I don't have a github account so i am posting the solution to a github issue here. https://github.com/TheOfficialFloW/GTA_ ... d/issues/6

The issue is when this plugin is enabled, the game doesn't respond to invert y axis option. My quick fix inverts y axis for both camera and aiming, it still doesn't read the option within game though. So use this version i posted if you want inverted y axis and use the original one in github if you want normal y axis controls.

Proper solution would be reading the game option from ram and patching the function according to that. i suspect these lines check the option within game (address at 0x003522B3) but i am not sure, also i can't write a dynamic function like flow so i will just pass.

var13 = *((unsigned char *) 0x003522B3);
__asm__ ("cvt.s.w $fpr12, $fpr12;");
if (!(var13 == 0x00000000))
{
__asm__ ("neg.s $fpr12, $fpr12;");
}

All credits source and blabla to flow, i just included 2 minus sign and compiled.

Thanks for testing to @NeoTechni
Advertising
Attachments
gta_remastered.zip
changed two instances of return (int)((float)ry * FACTOR); to return (int)((float)-ry * FACTOR);
(2.36 KiB) Downloaded 248 times
Locked

Return to “Programming and Security”