Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Posted by DarkOfDeath, a member of the Cronus Community - https://cronusmax.com/forums
- //Posted : Wednesday 22nd of January, 2020 17:42 UTC
- /*
- ========================================
- === 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 Vertical 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
- // On the fly recoil from itzsnacks
- 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
- define ON = TRUE;
- define OFF = FALSE;
- // Two aim assist values from itzsnacks
- int aa = 22; // Decrease if shake
- int aa_delay = 20; // Increase if game lag
- main {
- if(get_val(PS4_R2))
- combo_run(AA_XY);
- else
- combo_stop(AA_XY);
- if(Flipped) {
- swap(R1,R2);
- swap(L1,L2);}
- if(get_val(PS4_L2) && get_val(PS4_R2))
- combo_run(AR);
- if(get_val(PS4_L2) && event_press(PS4_UP)) { AR_ONOFF=!AR_ONOFF; ARH_ONOFF = OFF; LED(0,0,3,0);}
- if(AR_ONOFF) {
- if(event_press(PS4_R1)) {
- AR = AR + 1;
- combo_run(Increase);}
- if(event_press(PS4_L1)) {
- AR = AR - 1;
- combo_run(Decrease);}
- set_val(R1,0); set_val(PS4_L1,0);}
- if(get_val(PS4_L1) && event_press(PS4_DOWN)) { ARH_ONOFF=!ARH_ONOFF; AR_ONOFF = OFF; LED(0,0,0,3);}
- if(ARH_ONOFF) {
- if(event_press(PS4_R1)) {
- AR_H = AR_H + 1;
- combo_run(Increase);}
- if(event_press(PS4_L1)) {
- AR_H = AR_H - 1;
- combo_run(Decrease);}
- set_val(R1,0); set_val(PS4_L1,0);}
- if(!AR_ONOFF && !ARH_ONOFF) {
- LED(0,0,0,0);}
- if(abs(get_val(PS4_RY)) > AR + 2 || abs(get_val(PS4_RX)) > AR + 2) {
- combo_stop(AR);}}
- combo AA_XY {
- set_val(PS4_RY,xy_val(PS4_RY,aa));
- wait(aa_delay)
- set_val(PS4_RX,xy_val(PS4_RX,aa));
- set_val(PS4_LX,xy_val(PS4_LX,aa));
- wait(aa_delay)
- set_val(PS4_RY,xy_val(PS4_RY,inv(aa)));
- wait(aa_delay)
- set_val(PS4_RX,xy_val(PS4_RX,inv(aa)));
- set_val(PS4_LX,xy_val(PS4_LX,inv(aa)));
- wait(aa_delay)}
- 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);}
- function xy_val(f_axis,f_val) {
- if(abs(get_val(f_axis)) < aa + 1)
- return f_val;
- return get_val(f_axis);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement