GT5 Susspension setup Look at that

Easy Make your ride better
Versionv1.22-3
AuthorKia7
Publish DateTue, 12 Mar 2013 - 18:23
Last UpdateTue, 12 Mar 2013 - 18:23
Downloads118
RATE


0

0

Code: Select all
/***GT5 Garage Setup*** //Susspension Setup//
Press Square on Susspension
* *********************************************************** */

define Slot = 9; //# of slot
define Slot2 = 9 ;   
define Speed = 150  ; //Speed of inputes ; Almost All, Determines rate.
 
    define RR = 3000; // Camber Rear
    define FF = 4000// Camber Front
    define FFT = 3855; // Toe Angle Rear
    define TFF = 3955; //Toe Angle Front
    define DE = 300; // Dampers (Extension) Rear
    define ED = 500; // Dampers (Extension)Front
    define DC = 400; // Dampers Compression Front
    define DD = 400; // Dampers Compress Rear
    define AR = 30; //Antiroll Bars RR
    define ARB = 400; //Antiroll Bars FF
    define SRR = 790; //Spring Rate FF
    define SRF = 2400; //Spring Rate RR
 
define Sp = 1000; //Hold Long
define Spd1 = 4000; //Longer hold
define Spd = 700; // A,X Button
    define XB = XB360_UP;
    define ST = XB360_START;
    define Select = XB360_BACK;
    define LB = XB360_LB;         
    define RB = XB360_RB;
    define LT = XB360_LT;
    define RT = XB360_RT;
    define B = XB360_B;
    define A = XB360_A;
    define UP = XB360_UP;
    define DWN = XB360_DOWN;
    define Right = XB360_RIGHT;
    define Left = XB360_LEFT;
    define X = XB360_X;
 
main {
    if(get_val(ST)) combo_stop(Auto);//Susspension FF ,FR;
    if(get_val(X)) combo_run(Auto); //
    if(get_val(XB360_BACK)){
    if (event_press(UP))combo_run (XXX);}
   if(get_val(XB360_BACK)){
    if (event_press(UP))combo_run (CAN);}
/*
set_val(B,100);//B
    wait(Spd);
    set_val(B,0);
    wait(Spd);
set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
set_val(UP,100);//up   
    wait(Speed);
    set_val(UP,0);
    wait(Speed);
set_val(DWN,100);//Down
    wait(Speed)
    set_val(DWN,0);
    wait(Speed)
set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
set_val(Left,100);//Left Holder Transmis
    wait (Spd1);
    set_val(Left,100);
    wait(Spd1);
set_val(Right, 100);//right ?Hold
    wait(RR);
    set_val(Right, 0);
    wait(RR);
set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
 
*/

}
combo Auto{set_ledx(LED_1,4);
set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(DWN,100);//Down
    wait(Speed);
    set_val(DWN,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);
    set_val(Left,100);
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(RR);
    set_val(Right, 100);
    wait(RR);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,100);
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(FF);
    set_val(Right, 100);
    wait(FF);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(DWN,100);//Down
    wait(Speed)
    set_val(DWN,0);
    wait(Speed)
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);
    set_val(Left,100);//Left Holder
    wait (Spd1);   
    set_val(Left,100);
    wait(Spd1);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);   
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(FF);
    set_val(Right, 100);
    wait(FF);
    set_val(Right, 100);
    wait(FF);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);   
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,100);//Left Holder
    wait (Spd1);   
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(FFT);
    set_val(Right, 100);//right ?Hold
    wait(FFT);
    set_val(Right, 100);//right ?Hold
    wait(FFT);
    set_val(Right,0);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
    set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
    set_val(DWN,100);//Down
    wait(Speed);
    set_val(DWN,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder Transmis
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(DE);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(ED);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(DWN,100);//Down
    wait(Speed);
    set_val(DWN,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(DC);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(DD);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(DWN,100);//Down
    wait(Speed);
    set_val(DWN,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(Left,100);//Left
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold
    wait(AR);                           //AR***
    set_val(Right, 0);//right ?Hold
    wait(Spd);//
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(Left,100);//Left
    wait(Speed);
    set_val(Left,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,100);
    wait (Spd1);
    set_val(Left,0);
    set_val(Right, 100);//right ?Hold arb***
    wait(ARB);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(UP,100);//up   
    wait(Speed);
    set_val(UP,0);
    wait(Speed);
    set_val(UP,100);//up   
    wait(Speed);
    set_val(UP,0);
    wait(Speed);
    set_val(UP,100);//up   
    wait(Speed);
    set_val(UP,0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(DWN,100);//Down
    wait(Speed);
    set_val(DWN,0);
    wait(Speed);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    wait (Spd);
    set_val(Right, 100);//right ?Hold
    wait(SRR);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0)
    set_val(Right, 100);//right
    wait(Speed);
    set_val(Right, 0);
    wait(Speed);
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
    set_val(Left,100);//Left Holder
    wait (Spd1);
    set_val(Left,0);
    wait (Spd);
    set_val(Right, 100);//right ?Hold
    wait(DD);
    set_val(Right, 0);//right ?Hold
    set_val(A,100); //A
    wait(Spd);
    set_val(A,0);
    wait(Spd);
}
combo XXX{reset_leds();
wait (212);
load_slot(Slot);
} 
combo CAN{reset_leds();
wait (212);
load_slot(Slot2);
}