// GPC Online Library // anti_recoil_on_the_fly.gpc /* = = = = = = = = = = = = = = = = = = = = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ = = /\/\/\ Made By ItzSnack /\/\/\ = = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ = = = = = = = = = = = = = = = = = = = = ============================== === Anti Recoil ON THE FLY === ============================== =================== === Version 1.2 === =================== ======================================== === Vertical Anti Recoil Explanation === ========================================================================================== === L2/LT + D-PAD UP Allow you to change the Anti Recoil Values of Vertical Recoil === === The LED Will display as GREEN if Enabled now you can Increase/Decrease the Values === === L1/LB Will Decrease the Vertical Recoil By -1 === === R1/RB Will Increase the Vertical Recoil By +1 === ========================================================================================== ========================================== === Horizontal Anti Recoil Explanation === ========================================================================================== === L2/LT + D-PAD DOWN Allow you to change the Anti Recoil Values of Horizontal Recoil === === The LED Will display as PINK if Enabled now you can Increase/Decrease the Values === === L1/LB Will Decrease the Horizontal Recoil By -1 === === R1/RB Will Increase the Horizontal Recoil By +1 === ========================================================================================== ================= === Important === ========================================================================================================== === When Increasing a value you will feel a Heavy Rumble === === When Decreasing a value you will feel a Light Rumble === === When you not able to change Recoil Values of Vertical or Horizontal your LED will display as BLACK === ========================================================================================================== */ //Layout define PS = PS4_PS; //XBOX define SHARE = PS4_SHARE; //VIEW define OPTIONS = PS4_OPTIONS; //MENU define R1 = PS4_R1; //RB define R2 = PS4_R2; //RT define R3 = PS4_R3; //RS define L1 = PS4_L1; //LB define L2 = PS4_L2; //LT define L3 = PS4_L3; //LS define RX = PS4_RX; define RY = PS4_RY; define LX = PS4_LX; define LY = PS4_LY; define UP = PS4_UP; define DOWN = PS4_DOWN; define LEFT = PS4_LEFT; define RIGHT = PS4_RIGHT; define TRIANGLE = PS4_TRIANGLE; //Y define CIRCLE = PS4_CIRCLE; //B define CROSS = PS4_CROSS; //A define SQUARE = PS4_SQUARE //X define TOUCHPAD = PS4_TOUCH; int AR = 24; //Start Value of Vertical Recoil int AR_H = 0; //Start Value of Horizontal Recoil int AR_I = 1; //Change 1 to -1 If you play with Inverted int ARS,AR_ONOFF,ARH_ONOFF,Flipped = OFF; //Change OFF TO ON If you play with Flipped Triggers main { if(Flipped) { swap(R1,R2); swap(L1,L2);} if(get_val(L2) && get_val(R2)) combo_run(AR); if(get_val(L2) && event_press(UP)) { AR_ONOFF=!AR_ONOFF; ARH_ONOFF = OFF; LED(0,0,3,0);} if(AR_ONOFF) { if(event_press(R1)) { AR = AR + 1; combo_run(Increase);} if(event_press(L1)) { AR = AR - 1; combo_run(Decrease);} set_val(R1,0); set_val(L1,0);} if(get_val(L2) && event_press(DOWN)) { ARH_ONOFF=!ARH_ONOFF; AR_ONOFF = OFF; LED(0,0,0,3);} if(ARH_ONOFF) { if(event_press(R1)) { AR_H = AR_H + 1; combo_run(Increase);} if(event_press(L1)) { AR_H = AR_H - 1; combo_run(Decrease);} set_val(R1,0); set_val(L1,0);} if(!AR_ONOFF && !ARH_ONOFF) { LED(0,0,0,0);} if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) { combo_stop(AR);}} combo AR { ARS = get_val(RY) + AR; if(ARS > 100) ARS = 100; set_val(RY,ARS * AR_I); ARS = get_val(RX) + AR_H; if(ARS > 100) ARS = 100; set_val(RX,ARS);} combo Increase { set_rumble(RUMBLE_A,100); wait(100); reset_rumble();} combo Decrease { set_rumble(RUMBLE_B,100); wait(50); reset_rumble();} function LED(a,b,c,d) { set_led(LED_1,a); set_led(LED_2,b); set_led(LED_3,c); set_led(LED_4,d);} define ON = TRUE; define OFF = FALSE;