GPC SCRIPT LIBRARY

Forza Motorsport 5&6/Horizon 2&3 - Fanatec CSR/CSR-E/GT2 Wheel and CSR/CS Pedals

A script to use the Fanatec CSR Wheel and Clubsport V2 Pedals on Forza Motorsport 5&6 and Forza Horizon 2&3 for XboxOne. Controller Layout 6 in the Forza 5&6 controller options menu. The script includes a function that uses the manual clutch on the Clubsport pedals. If you want to remove this, simply delete the bottom the section of script.
Version 1.04
Author Picklock
Published Date 2014-07-24 13:46:26
Latest Date 2017-07-09 14:05:40
Downloads 9888
VOTE NOW

8

2
Contact Author
Scripts by Author
RELEASE NOTES
Fixed compiling errors
Code:Select all
// Forza Motorsport 5&6/Forza Horizon 2&3 - Fanatec CSR Wheel/Clubsport Pedals/Sequential Shifter

main {

//Steering Correction
    if(get_val(XB1_LX)<1){
            set_val(XB1_LX, ((get_val(XB1_LX) * 7) / 9) - 23);
    }
    if(get_val(XB1_LX)>0){
            set_val(XB1_LX, ((get_val(XB1_LX) * 7) / 9) + 23);
    }
            //Set Outside Deadzone to 90 for perfect setting.

//Rumble

if (get_rumble(RUMBLE_B) > 1 && get_rumble(RUMBLE_A) > 1 ){ //Rumble evenly for offroad
    set_rumble(RUMBLE_A, (RUMBLE_B * 75));
    set_rumble(RUMBLE_B, (RUMBLE_B * 100));
    }

if (get_rumble(RUMBLE_B) > 1 && get_rumble(RUMBLE_A) == 0){ //On rev limiter, B-light only
    set_rumble(RUMBLE_B, (RUMBLE_B * 80)); //B-light on, but no rumble
    }

if (get_rumble(RUMBLE_RT)){ //XB1 new traction trigger rumble
    if (get_rumble(RUMBLE_B) < 65){ //If RUMBLE_B is just the rev limiter light, but we are also in a traction-loss situation...
        set_rumble(RUMBLE_B,(RUMBLE_RT * 50)) //XB1_RT rumble to RUMBLE_B
        }
    }

if (get_rumble(RUMBLE_LT)){ //XB1 new braking trigger rumble
    if (get_rumble(RUMBLE_A) == 0){ 
        set_rumble(RUMBLE_A,(RUMBLE_LT * 30)); //XB1_LT rumble to RUMBLE_A for even braking rumble
        set_rumble(RUMBLE_B,(RUMBLE_LT * 30)); //XB1_LT rumble to RUMBLE_B for even braking rumble
        }
    }

// Turning on manual clutch via Clubsport clutch pedal.
   if(get_val (XB1_RY)) combo_run(A)

// Using right/left on D-pad to look right/left in-game.
   if(get_val (XB1_LEFT)) combo_run(B)
   if(get_val (XB1_RIGHT)) combo_run(C)
}

// Manual clutch combo
    combo A {
        set_val(XB1_A, 100);
}
// Look Left - Dpad Left
    combo B {
        set_val(XB1_RX, -100);
}
// Look Right - Dpad Right
    combo C {
        set_val(XB1_RX, 100);
}

Pin It on Pinterest

Share This