xan1242 / NFS-XtendedInput

NFS (Black Box, MW & newer) - XInput Plugin
MIT License
112 stars 7 forks source link

(feature request) manual reverse gear like in PS2 demo/Carbon PC? #6

Open TorutheRedFox opened 2 years ago

TorutheRedFox commented 2 years ago

it's a controls mod so maybe it'll fit

getting parity with final console release is priority tho

xan1242 commented 2 years ago

Yeah that is indeed interesting that it doesn't shift down to reverse even though it should technically. This plugin tells the game which actions to trigger, the same as the console version anyway, so it's technically correct in that sense, but the game's behavior is coded differently here for some reason... (I assume FF wheels)

Internally the gears are enumerated, so it should be very easy to just make it decrement the gear value one more step. (and disable reversing on holding down the brakes)

Gear -1 = Reverse Gear 0 = Neutral Gear 1 = Gear ... and so on

So it's just a matter of finding the joy handler code for that (which is PlayerInput I think), which I already did, so it shouldn't be a too hard fix.

TorutheRedFox commented 2 years ago

forgot that Carbon on console also has reverse on brake pedal regardless of transmission setting