/*
__________ __________ _______ _____ ________
___ ____/________________________ _ ___ ____/ ___ |___ ___ /_________ __ \____________ _______ _
__ /_ _ __ \_ ___/__ /_ __ `/ ______ \ __ /| | / / / __/ __ \_ / / /_ ___/ __ `/_ __ `/
_ __/ / /_/ / / __ /_/ /_/ / ____/ / _ ___ / /_/ // /_ / /_/ / /_/ /_ / / /_/ /_ /_/ /
/_/ \____//_/ _____/\__,_/ /_____/ /_/ |_\__,_/ \__/ \____//_____/ /_/ \__,_/ _\__, /
/____/
This script is to automate Forza 5 drag races for the purpose of increasing your affinity level with a manufacturer.
The car this was created for is the 2012 #1 Audi Sport Team Joest R18 e-tron quattro.
Adjust the race length as need be to accommodate the car you are driving.
In 'Free Race' set up a 1 mile drag race and start it.
When you get to the next screen where pressing 'A' will launch the race - you are ready to enable this script.
*/
int wt=25000;
int shwt=10000;
int loop;
main {
if (event_press(XB1_LS)) {loop=!loop;} // Click Left Stick to enable/disable this combo
if (loop) {combo_run(forza);}
if (!loop) {combo_stop(forza);}
}
combo forza {
block_rumble (); // If you have your controller in, this will stop it from shaking all over the place.
set_val(XB1_A, 100); // This presses 'A' to start the race
wait (100);
wait (4000); // ... and waits before pressing the gas pedal.
set_val(XB1_RT,100); // Right trigger (gas) comes on early but that isn't really an issue.
wait (wt); // This isn't likely enough gas, another press is below.
set_val(XB1_RT,100); // Here's another press of the RT.
wait (wt); // That lasts as long as the one above. This may need adjustment depending on the car or tune used.
wait (wt); // This is a pause for the end of race and stats screens.
wait (shwt); // More pause
set_val(XB1_RIGHT, 100); // Press right on the D-Pad
wait (50);
wait (50);
set_val(XB1_RIGHT, 100); // ... and again. This highlights 'Restart'
wait (50);
wait (50);
set_val(XB1_A, 100); // Press 'A' to chose to restart the race - creating the Xbox side of the loop.
wait (50);
wait (50);
wait (shwt); // It seems that this pause changes slightly. This has looped for me countless times and isn't excessive.
}