Forza 6 Tools

Auto Clutch, Adjustable Throttle Stop for RPM control when drag racing, and Improved ABS
Version2.2
AuthorGfoke
Publish DateSun, 13 Sep 2015 - 03:33
Last UpdateSun, 15 Oct 2017 - 17:21
Downloads1035
ForumAnnouncement Topic
RATE


5

0

Release Notes: Adjusted auto-clutch timing and values. change default throttle letoff during shifts to 25%.
Code: Select all
 
 
// GPC Online Library
// forza_6_tools.gpc
 
//Forza 6/Forza 7 script with improved abs, auto clutch, and adjustable throttle stop.
//adjust control buttons to match your controls on lines 6 thru 11
//press and hold chosen rev limiter button to engage throttle stop, release to disengage.
//can be adjusted up and down by holding gas button and pressing left and right on dpad.
 
define brake = XB1_LT;
define gas = XB1_RT;
define clutch = XB1_LB;
define upshift = XB1_B;
define downshift = XB1_X;
define revlimiterbutton = XB1_A;
 
 
int clutchtime = 180;//delay between clutch activation
int throttlestop = 60;//percentage of throttle stop
int brake_maximum = 75;//hardest brake percentage
int brake_use;
int letoff = 25;//default throttle percentage on shifts. 25 works well with most cars. change to 0 for some cars with really slow transmissions.
 
main {
    if(get_val(brake) && get_val(gas) ) {
        combo_run(Clutchhold);
    } else combo_stop(Clutchhold);
if (event_press(upshift)) {
        combo_run(Clutchupshift);
}
if(event_press(downshift) ) {
        combo_run(Clutchdownshift);
}
if (get_val(revlimiterbutton) && get_val(gas)) {
combo_run(revlimiter);
}
if (event_press(XB1_LEFT) && get_val (gas)) throttlestop = throttlestop -2;
if (event_press(XB1_RIGHT)&& get_val (gas)) throttlestop = throttlestop +2;
if (throttlestop > 100) throttlestop = 100;
else if (throttlestop < 0) throttlestop = 0;
if (get_val(brake)) {combo_run (ABS);
}
}
combo ABS {
brake_use = get_val(brake);
if (brake_use > brake_maximum) brake_use = brake_maximum;
set_val(brake,100);
wait (50);
set_val(brake,brake_use);
wait (70);
}
combo Clutchhold {
    set_val(clutch, 100);
}
 
combo Clutchupshift {
    set_val(gas, letoff);
    set_val(clutch, 100);
     wait (clutchtime);
    set_val(clutch, 0);
}
combo Clutchdownshift {
    set_val(gas,letoff);
    set_val(clutch, 100);
     wait (clutchtime);
    set_val(clutch, 0);
}
combo revlimiter {
set_val(gas,throttlestop);
set_val(revlimiterbutton,0);
}