Forza 5 - Fanatec CSR Wheel and Clubsport V2 Pedals

A script to use the Fanatec CSR Wheel and Clubsport V2 Pedals on Forza 5 for XboxOne. Controller Layout 6 in the Forza 5 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.
Version1.1
Authorpicklock
Publish DateMon, 12 May 2014 - 19:19
Last UpdateThu, 24 Jul 2014 - 17:46
Downloads1055
RATE


5

0

Release Notes: Raised values for rumble effects.
Code: Select all
// GPC Online Library
// forza_5__fanatec_csr_wheel_and_clubsport_v2_pedals.gpc
 
// GPC Online Library
// forza_5__fanatec_csr_wheel_and_clubsport_v2_pedals.gpc
 
// Forza 5 - Fanatec CSR Wheel/Clubsport Pedals
 
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 * 80)) //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 * 60)); //XB1_LT rumble to RUMBLE_A for even braking rumble
        set_rumble(RUMBLE_B,(RUMBLE_LT * 60)); //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);
}