Assetto Corsa Flicker Lights

Have Any Type Of Flashing Lights, Morse Code, Hazards, etc... Must Modify Setup For Proper Use, Should Have 3 -4 Types of combos Use - PS3 Thrustmaster Joystick EBrake.(Set Up Right).RY_PS3 TO Lever.. Type- Car Head Lights- XB360_A = Default Lights....
VersionAwsome Fix Why?
AuthorKia7L
Publish DateWed, 6 May 2015 - 01:37
Last UpdateSun, 31 May 2015 - 19:12
Downloads150
RATE


1

0

Code: Select all
// GPC Online Library
// assetto_corsa_flicker_lights.gpc
 
/*
* Aftermarket Import Car Lights..........
Kia7L... TESTED ON Assetto Corsa PC Game...SET Titan To xb360 for pc
* You Could Race With +100 Joystick Ebrake PS3 and Flash Your Car Lights.
* Set RY to Lever on Joystick (Remap Joystick button)(Works=ThrustmasterFlightStick PC/PS3 could set to ps3.
* *********************************************************** */

define Speed_of_Light=10;//Rate Speed
define Speed_of_Light2=1;//2nd Rate
define Default_Lights=PS3_CROSS;//****Change To Lights For Car****
define OFF=PS3_LX;//Clear CMD
define OFF2=PS3_LY;
define Cop_1=PS3_LY;
define Cop_2=PS3_LX;//default cop lights
define Standard=PS3_RY;//EBrake Works When Joystick Is Set Right
define Security=PS3_RY;//Car Protection Warning
define Hazard=PS3_RY;//Hazard Button
int HOLD,REST,HOLD1,REST1;//...................................................
init {HOLD=1000/Speed_of_Light; HOLD1=1000/Speed_of_Light2;//Speed Formula//Speed Formula
if (HOLD>=300)REST=290; if (HOLD1>=300)REST1=290;}
main {//MAIN SETUP......................................
    if (get_val(Hazard)>99)combo_run(HAZ);//Third
    if (get_val(Hazard)>98)combo_stop(STAND);//Second
    if (get_val(Hazard)>98)combo_stop(ALARM_1);//First
    if (get_val(Cop_1)>35)combo_run(COP);
    if (get_val(Cop_2)>35)combo_run(COP);
    if (get_val(Security)>-5)combo_run(ALARM_1);//...........
    if (get_val(Standard)>-90)combo_run(STAND);//..
    if (get_val(Standard)>-90)combo_stop(ALARM_1);//..
    if (get_val(OFF)>20)combo_stop(STAND);
    if (get_val(OFF)>20)combo_stop(HAZ);
    if (get_val(OFF)>20)combo_stop(ALARM_1);//............
    if (get_val(OFF2)>20)combo_stop(STAND);
    if (get_val(OFF2)>20)combo_stop(HAZ);
    if (get_val(OFF2)>20)combo_stop(ALARM_1);
}
combo COP { //.........................................
    set_val(Default_Lights, 100);
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
}
combo STAND { //....................................
     set_val(Default_Lights, 100);//copy Default_Lights Paste TO ALL or use combo magic
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);
    wait(150);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(800);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(800);
    set_val(Default_Lights, 100);
    wait(150);
    set_val(Default_Lights, 0);
    wait(500);
    set_val(Default_Lights, 100);
    wait(150);
    set_val(Default_Lights, 0);
    wait(950);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(800);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(840);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(150);
    set_val(Default_Lights, 100);
    wait(95);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(690);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(200);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(150);
    set_val(Default_Lights, 100);
    wait(50);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
}
combo HAZ { //Hazard Lights
    set_val(Default_Lights, 100);
    wait(HOLD1);
    set_val(Default_Lights, 0);
    wait(REST1);
}
combo ALARM_1 { //Car Alarm
     set_val(Default_Lights, 100);//copy Default_Lights Paste TO ALL or use combo magic
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//copy Default_Lights Paste TO ALL
    wait(140);
    set_val(Default_Lights, 0);
    wait(320);
    set_val(Default_Lights, 100);
    wait(130);
    set_val(Default_Lights, 0);
    wait(340);
    set_val(Default_Lights, 100);
    wait(130);
    set_val(Default_Lights, 0);
    wait(630);
    set_val(Default_Lights, 100);
    wait(110);
    set_val(Default_Lights, 0);
    wait(320);
    set_val(Default_Lights, 100);
    wait(50);
    set_val(Default_Lights, 0);
    wait(90);
    set_val(Default_Lights, 100);
    wait(110);
    set_val(Default_Lights, 0);
    wait(560);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(420);
    set_val(Default_Lights, 100);
    wait(50);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(490);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(350);
    set_val(Default_Lights, 100);//copy Default_Lights Paste TO ALL or use combo magic
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);//
    wait(HOLD);
    set_val(Default_Lights, 0);
    wait(REST);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(780);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(710);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(110);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(700);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(590);
    set_val(Default_Lights, 100);
    wait(70);
    set_val(Default_Lights, 0);
    wait(130);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(120);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(590);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(510);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(130);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(110);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(850);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(400);
    set_val(Default_Lights, 100);
    wait(120);
    set_val(Default_Lights, 0);
    wait(540);
    set_val(Default_Lights, 100);
    wait(80);
    set_val(Default_Lights, 0);
    wait(100);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
    wait(490);
    set_val(Default_Lights, 100);
    wait(100);
    set_val(Default_Lights, 0);
    wait(390);
    set_val(Default_Lights, 100);
    wait(110);
    set_val(Default_Lights, 0);
    wait(550);
    set_val(Default_Lights, 100);
    wait(110);
    set_val(Default_Lights, 0);
    wait(110);
    set_val(Default_Lights, 100);
    wait(90);
    set_val(Default_Lights, 0);
}