Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions OpenParrot/src/Functions/Games/Other/FNFSC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,33 +98,26 @@ static int __cdecl SetControl(u_int param_1, u_int param_2)

static void ChangeGear(int gearNo)
{
std::string currGear = "Current Gear: " + std::to_string(gearNo);
SetControlOrig(0x10005, 0x1);
SetControlOrig(0x10006, 0x1);
SetControlOrig(0x10007, 0x1);
SetControlOrig(0x10008, 0x1);
if (gearNo == 1)
{
SetControlOrig(0x10005, 0x1);
SetControlOrig(0x10006, 0x0);
SetControlOrig(0x10007, 0x0);
SetControlOrig(0x10008, 0x0);
SetControlOrig(0x10005, 0x0);
}
else if (gearNo == 2)
{
SetControlOrig(0x10005, 0x0);
SetControlOrig(0x10006, 0x1);
SetControlOrig(0x10007, 0x0);
SetControlOrig(0x10008, 0x0);
SetControlOrig(0x10006, 0x0);
}
else if (gearNo == 3)
{
SetControlOrig(0x10005, 0x0);
SetControlOrig(0x10006, 0x0);
SetControlOrig(0x10007, 0x1);
SetControlOrig(0x10008, 0x0);
SetControlOrig(0x10007, 0x0);
}
else if (gearNo == 4)
{
SetControlOrig(0x10005, 0x0);
SetControlOrig(0x10006, 0x0);
SetControlOrig(0x10007, 0x0);
SetControlOrig(0x10008, 0x1);
SetControlOrig(0x10008, 0x0);
}
}

Expand Down Expand Up @@ -501,6 +494,13 @@ DWORD WINAPI InputRT2(LPVOID lpParam)
ChangeGear(2);
}
}
else
{
if (buttonGear2Pressed == true)
{
buttonGear2Pressed = false;
}
}

//GEAR 3
if (*ffbOffset5 & 0x4)
Expand Down