Rainbow 6 Siege Ultimite Script in the works

GPC1 script programming for Titan One. Code examples, questions, requests.

Rainbow 6 Siege Ultimite Script in the works

Postby Spykiddtmm » Sat Jul 04, 2020 1:32 am

Hi could any one help me i am trying to modify this script and well... just make it better.
It needs to more functions
1. Lean Spam
2. Auto Lean

just a generic lean spam that can be toggled on and off by using Touchpad + Triangle
and a auto lean so when you move left it leans left and move right for lean right also can be toggled using Touchpad + Square

could some one help me out and add those to features ?
Attachments
Defender Normal.gpc
(9.73 KiB) Downloaded 110 times
User avatar
Spykiddtmm
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Jul 01, 2020 3:08 pm

Re: Rainbow 6 Siege Ultimite Script in the works

Postby J2Kbr » Mon Jul 06, 2020 2:11 pm

Hi, please check if the lean functions are working as you wish ;)
Code: Select all
/*         Controls
Touchpad + Right    = Rapid Fire All
Touchpad + Left     = Rapid Fire Sec
Touchpad + Down     = Rapid Fire Off
Touchpad + Circle   = Crouch Spam
 
 
Touchpad + Triangle = Lean Spam
Touchpad + Square    = Auto Lean
 
L2 + Left = Recoil profile Change
 
Hold Down For Spaz Mode
 
Press Up For 180
Double Tap UP For 360
 
*/

 
define ANTI_RECOIL_1 = 20;      //Doc
define ANTI_RECOIL_2 = 21;      //Bandit
define ANTI_RECOIL_3 = 20;      //Melusi
define ANTI_RECOIL_4 = 26;      //Smoke
define ANTI_RECOIL_5 = 24;      //Ela
 
define Anti_Recoil = TRUE;
define Toggle_Rapid_Fire = TRUE;
define Start_Rapid_Fire_On = FALSE;
define Toggle_Crouch_Spam = TRUE;
define Aim_Fire_Crouch_Spam = TRUE;
define Aim_Crouch_Spam = FALSE;
define Fire_Crouch_Spam = FALSE;
define Spin = TRUE;
define Auto_Scan = TRUE;
define Auto_Ping = TRUE;
define Auto_LB_Frag_Release = TRUE;
define Auto_RB_Frag_Release = FALSE;
define Melee_Protection = TRUE;
define Custom_LS_Deadzone = TRUE;
define Custom_RS_Deadzone = TRUE;
define Activation_Rumble = TRUE;
define Script_Welcome = TRUE;
define RS_ADS_VERTICAL_SENSITIVITY = 100;
define RS_ADS_HORIZONTAL_SENSITIVITY = 100;
define RS_LOOK_HORIZONTAL_SENSITIVITY = 90;
define RS_LOOK_VERTICAL_SENSITIVITY = 90;
define LONGEST_PRESS_FOR_TURN_ON = 255;
define TIME_FOR_TURN_ON = 255;
define DIRECTION_FOR_TURN_ON = 100;
define MINIMUM_WALK_SPEED_FOR_SPRINT = 0;
define MINIMUM_SPRINT_SPEED = 0;
define AUTO_PING_AIM_AND_SHOOTING_TIME_REQ = 150;
 
int AR = ANTI_RECOIL_1;
int AR_PROFILE;
int RS_VERTICAL_DEADZONE_UP = 5;
int RS_VERTICAL_DEADZONE_DOWN = 5;
int RS_HORIZONTAL_DEADZONE_LEFT = 4;
int RS_HORIZONTAL_DEADZONE_RIGHT = 4;
int CAM_SCAN_LOOP;
int Hold_Y = 0;
int TURN_ON_DIRECTION;
int TURN_ON_TIME;
int Crouch_Spam;
int Lean_Spam;
int Auto_Lean;
int Rapid_Fire_All;
int Rapid_Fire_Sec;
int Rapid_Fire_Is_Sec;
int AR_VERT = 23;
int AR_HOR = 0;
int OUTPUT_VERT;
int OUTPUT_HOR;
int VERT_SPEED;
int HOR_SPEED;
int milliseconds;
int seconds;
int SCOREBOARD_BUTTON;
int rumb_count;
int rumb_type;
 
init {
    combo_run(c_Welcome_Script_Run);
}
 
 
main {
        vm_tctrl( + 7);
        if (get_controller() == PIO_PS4) SCOREBOARD_BUTTON = PS4_TOUCH;
        else  SCOREBOARD_BUTTON = XB1_VIEW;
        if (get_val(XB1_LT)) set_val(XB1_LT, 100);
        if (get_val(XB1_RT)) set_val(XB1_RT, 100);
        if (event_release(XB1_UP) && get_ptime(XB1_UP) <= LONGEST_PRESS_FOR_TURN_ON) {
            TURN_ON_TIME = TIME_FOR_TURN_ON;
            TURN_ON_DIRECTION = -DIRECTION_FOR_TURN_ON;
        }
        if (get_val(XB1_UP) && get_ptime(XB1_UP) <= LONGEST_PRESS_FOR_TURN_ON) set_val(XB1_UP, 0);
        if (get_val(XB1_LT)) {
            sensitivity(XB1_RX, NOT_USE, RS_ADS_HORIZONTAL_SENSITIVITY);
            sensitivity(XB1_RY, NOT_USE, RS_ADS_VERTICAL_SENSITIVITY);
        }
        else if (!get_val(XB1_LT)) {
            sensitivity(XB1_RX, NOT_USE, RS_LOOK_HORIZONTAL_SENSITIVITY);
            sensitivity(XB1_RY, NOT_USE, RS_LOOK_VERTICAL_SENSITIVITY);
        }
        if (TURN_ON_TIME >= 0) {
            TURN_ON_TIME = TURN_ON_TIME-get_rtime();
            set_val(XB1_RX, TURN_ON_DIRECTION);
        }
        if (get_val(XB1_LY) <= -MINIMUM_WALK_SPEED_FOR_SPRINT && event_press(XB1_LS) && !get_val(XB1_LT)) set_val(XB1_LY, -MINIMUM_SPRINT_SPEED);
        if (get_val(XB1_RS) && get_ptime(XB1_RS) >= 400) {
            combo_run(c_MELEE_LOOP);
            f_set_rumb(1, RUMBLE_RT);
        }
        if (get_val(XB1_RT) && get_ptime(XB1_RT) >= AUTO_PING_AIM_AND_SHOOTING_TIME_REQ) combo_run(c_Auto_Ping);
        if (get_val(XB1_LB) && get_ptime(XB1_LB) >= 3300) {
            set_val(XB1_LB, 0);
        }
        if (get_val(XB1_LB) && get_ptime(XB1_LB) >= 1800) {
            f_set_rumb(1, RUMBLE_LT);
        }
        if (get_val(XB1_DOWN) && get_ptime(XB1_DOWN) > 250) {
            if (abs(get_val(XB1_RY)) < 15) set_val(XB1_RY, 0);
            if (abs(get_val(XB1_RX)) < 15) set_val(XB1_RX, 0);
            combo_run(c_Shake_Mode);
        }
        if (event_release(XB1_Y) && get_ptime(XB1_Y) >= 1224) CAM_SCAN_LOOP = TRUE;
        if (CAM_SCAN_LOOP) {
            f_set_rumb(1, RUMBLE_LT);
            if (get_val(XB1_Y) || get_val(XB1_XBOX) || get_val(XB1_UP) || get_val(XB1_LT)) {
                CAM_SCAN_LOOP = FALSE;
                Hold_Y = 0;
            }
        }
        if (Hold_Y >= 1|| CAM_SCAN_LOOP) {
            Hold_Y = Hold_Y-get_rtime();
            set_val(XB1_Y, 100);
            if (!CAM_SCAN_LOOP) set_val(XB1_DOWN, 0);
            else if (Hold_Y < 0) set_val(XB1_Y, 0);
            if (Hold_Y <=  -40) Hold_Y = 1224;
        }
        if (get_val(SCOREBOARD_BUTTON) && get_ptime(SCOREBOARD_BUTTON) >= 204) {
            if (event_press(XB1_DOWN)) {
                Rapid_Fire_All = FALSE;
                Rapid_Fire_Sec = FALSE;
                Rapid_Fire_Is_Sec = FALSE;
            }
            if (event_press(XB1_LEFT)) {
                Rapid_Fire_All = FALSE;
                Rapid_Fire_Sec = TRUE;
                Rapid_Fire_Is_Sec = FALSE;
            }
            if (event_press(XB1_RIGHT)) {
                Rapid_Fire_All = TRUE;
                Rapid_Fire_Sec = FALSE;
                Rapid_Fire_Is_Sec = FALSE;
            }
            // Touchpad + Triangle = Lean Spam
            if (event_press(XB1_Y)) {
                Lean_Spam = !Lean_Spam;
            }
            // Touchpad + Square    = Auto Lean
            if (event_press(XB1_X)) {
                Auto_Lean = !Auto_Lean;
            }
            if (event_press(XB1_B)) Crouch_Spam =! Crouch_Spam;
            if (event_press(XB1_LS) && AR_VERT > 13) AR_VERT=AR_VERT-( 1);
            if (event_press(XB1_RS) && AR_VERT <= 98) AR_VERT=AR_VERT+( 1);
            if (event_press(XB1_LEFT) || event_press(XB1_UP) || event_press(XB1_DOWN) || event_press(XB1_B) || event_press(XB1_LS) || event_press(XB1_RS)) combo_run(c_Close_Scoreboard);
            combo_run(c_Stop_Button_Activation);
        }
        // Lean Mods
        if(Lean_Spam) {
            if(get_val(XB1_RS) || get_val(XB1_LS)) {
                combo_run(LeanSpamBoth);
            }
        }
        if(Auto_Lean) {
             if(get_val(XB1_LX) >= 50) {
                combo_run(AutoLeanRight);
            } else if(get_val(XB1_LX) <= -50) {
                combo_run(AutoLeanLeft);
            }
        }
        if (Rapid_Fire_Sec && event_press(XB1_Y)) Rapid_Fire_Is_Sec =! Rapid_Fire_Is_Sec;
        if ((Rapid_Fire_All|| Rapid_Fire_Is_Sec) && get_val(XB1_RT)) combo_run(c_Rapid_Fire);
        else if (combo_running(c_Rapid_Fire)) combo_stop(c_Rapid_Fire);
        if (Rapid_Fire_All) combo_run(c_Rapid_Fire_LED_Flash);
        else if (Rapid_Fire_Sec && !Rapid_Fire_Is_Sec) f_Colour_LED(0, 1, 1, 0);
        else if (Rapid_Fire_Sec && Rapid_Fire_Is_Sec) combo_run(c_Rapid_Fire_Sec_LED_Flash);
        else  f_Colour_LED(0, 1, 0, 0);
        if (Crouch_Spam && get_val(XB1_LT) && get_ptime(XB1_LT) > 400 && get_val(XB1_RT)) combo_run(c_Crouch_Spam);
        if (event_press(XB1_RS)) combo_run(c_Accidental_Melee_Protection);
        if (get_val(XB1_LT) && get_val(XB1_RT) && get_rumble(RUMBLE_A) && get_rumble(RUMBLE_B) && !CAM_SCAN_LOOP) combo_run(c_Anti_Recoil);
        if (abs(get_val(XB1_LY)) < 15 && abs(get_val(XB1_LX)) < 15 && abs(get_val(XB1_RY)) < 15 && abs(get_val(XB1_RX)) < 15) {
            milliseconds = milliseconds+ get_rtime();
            if (milliseconds >= 1000) {
                milliseconds = milliseconds-1000;
                seconds = seconds+ 1;
                if (seconds >= 50) {
                    combo_run(c_Anti_AFK);
                    seconds = 0;
                }
            }
        }
        if (abs(get_val(XB1_RX)) >= 15|| abs(get_val(XB1_RY)) >= 15|| abs(get_val(XB1_LX)) >= 15|| abs(get_val(XB1_LY)) >= 15|| get_val(XB1_XBOX) || get_val(XB1_A) || get_val(XB1_UP) || get_val(XB1_DOWN) || get_val(XB1_LEFT) || get_val(XB1_RIGHT)) {
            milliseconds = 0;
            seconds = 0;
        }
        if (rumb_count) combo_run(c_NOTIFY);
 
    if(get_val(XB1_LT)) {
        if(event_press(XB1_LEFT)) {
            AR_PROFILE++;
 
            if(AR_PROFILE > 5) {
                AR = ANTI_RECOIL_1;
                AR_PROFILE = 1;
            }
 
            if(AR_PROFILE == 1) AR_VERT = ANTI_RECOIL_1;
            if(AR_PROFILE == 2) AR_VERT = ANTI_RECOIL_2;
            if(AR_PROFILE == 3) AR_VERT = ANTI_RECOIL_3;
            if(AR_PROFILE == 4) AR_VERT = ANTI_RECOIL_4;
            if(AR_PROFILE == 5) AR_VERT = ANTI_RECOIL_5;
        }
    }   
}
 
combo LeanSpamBoth {
    wait(100);
    set_val(XB1_RS, 0);
    set_val(XB1_LS, 0);
    wait(90);
    set_val(XB1_RS, 0);
    set_val(XB1_LS, 0);
}
 
combo AutoLeanRight {
    set_val(XB1_RS, 100);
    wait(100);
}
 
combo AutoLeanLeft {
    set_val(XB1_LS, 100);
    wait(100);
}
 
combo c_MELEE_LOOP {
    set_val(XB1_RS, 0);
    wait(714);
    set_val(XB1_RS, 100);
    wait(306);
}
 
combo c_Auto_Ping {
    set_val(XB1_LEFT, 100);
    wait(34);
    wait(1938);
}
 
combo c_Crouch_Spam {
    set_val(XB1_B, 100);
    wait(17);
    wait(85);
}
 
combo c_Shake_Mode {
    set_val(XB1_RY,  -100);
    wait(17);
    set_val(XB1_RX, 100);
    wait(17);
    set_val(XB1_RY, 100);
    wait(17);
    set_val(XB1_RX,  -100);
    wait(17);
}
 
combo c_Anti_AFK {
    set_val(XB1_LS, 100);
    wait(40);
}
 
combo c_Anti_Recoil {
    if (get_val(XB1_RY) >= 15) VERT_SPEED = get_val(XB1_RY)  -14;
    else if (get_val(XB1_RY) <=  -15|| AR_VERT <= 11) VERT_SPEED = get_val(XB1_RY);
    else  VERT_SPEED = 0;
    if (!Rapid_Fire_Is_Sec) OUTPUT_VERT = VERT_SPEED+ AR_VERT;
    else  OUTPUT_VERT = VERT_SPEED+ 19;
    if (OUTPUT_VERT > RS_ADS_VERTICAL_SENSITIVITY) OUTPUT_VERT = RS_ADS_VERTICAL_SENSITIVITY;
    set_val(XB1_RY, OUTPUT_VERT);
    if (abs(AR_HOR) <= 10) HOR_SPEED = get_val(XB1_RX);
    else if (get_val(XB1_RX) >= 11) HOR_SPEED = get_val(XB1_RX)  -10;
    else if (AR_HOR <=  -10 && get_val(XB1_RX) <=  -11) HOR_SPEED = get_val(XB1_RX) + 10;
    else  HOR_SPEED = 0;
    OUTPUT_HOR = HOR_SPEED+ AR_HOR;
    if (OUTPUT_HOR > RS_ADS_HORIZONTAL_SENSITIVITY) OUTPUT_HOR = RS_ADS_HORIZONTAL_SENSITIVITY;
    if (OUTPUT_HOR < inv(RS_ADS_HORIZONTAL_SENSITIVITY)) OUTPUT_HOR = inv(RS_ADS_HORIZONTAL_SENSITIVITY);
    set_val(XB1_RX, OUTPUT_HOR);
}
 
combo c_Rapid_Fire {
    set_val(XB1_RT, 100);
    wait(17);
    set_val(XB1_RT, 0);
    wait(17);
}
 
combo c_Accidental_Melee_Protection {
    set_val(XB1_RS, 0);
    wait(17);
    set_val(XB1_RS, 100);
    wait(17);
}
 
combo c_Close_Scoreboard {
    set_val(SCOREBOARD_BUTTON, 0);
    wait(34);
    f_set_rumb(1, RUMBLE_LT);
    f_set_rumb(1, RUMBLE_RT);
    wait(68);
}
 
combo c_Stop_Button_Activation {
    set_val(XB1_UP, 0);
    set_val(XB1_DOWN, 0);
    set_val(XB1_LEFT, 0);
    set_val(XB1_RIGHT, 0);
    set_val(XB1_LB, 0);
    set_val(XB1_RB, 0);
    set_val(XB1_A, 0);
    set_val(XB1_B, 0);
    set_val(XB1_LS, 0);
    set_val(XB1_RS, 0);
    wait(357);
}
 
combo c_NOTIFY {
    set_rumble(rumb_type, 2);
    wait(136);
    reset_rumble();
    wait(136);
    rumb_count--;
}
 
combo c_Welcome_Script_Run {
    set_rumble(RUMBLE_LT, 0);
    set_rumble(RUMBLE_RT, 0);
    f_Colour_LED(0, 0, 0, 0);
    wait(502);
    set_rumble(RUMBLE_LT, 4);
    set_rumble(RUMBLE_RT, 4);
    f_Colour_LED(1, 1, 1, 1);
    wait(85);
    set_rumble(RUMBLE_LT, 0);
    set_rumble(RUMBLE_RT, 0);
    f_Colour_LED(0, 0, 0, 0);
    wait(102);
    set_rumble(RUMBLE_LT, 4);
    set_rumble(RUMBLE_RT, 4);
    f_Colour_LED(1, 1, 1, 1);
    wait(85);
    set_rumble(RUMBLE_LT, 0);
    set_rumble(RUMBLE_RT, 0);
    f_Colour_LED(0, 0, 0, 0);
    wait(204);
    reset_rumble();
}
 
combo c_Rapid_Fire_LED_Flash {
    f_Colour_LED(0, 0, 1, 0);
    wait(85);
    f_Colour_LED(0, 0, 0, 0);
    wait(17);
}
 
combo c_Rapid_Fire_Sec_LED_Flash {
    f_Colour_LED(0, 1, 1, 0);
    wait(85);
    f_Colour_LED(0, 0, 0, 0);
    wait(17);
}
 
 
function f_set_rumb(r_num, r_type) {
    rumb_count = r_num;
    rumb_type = r_type;
}
 
function f_Colour_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);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Rainbow 6 Siege Ultimite Script in the works

Postby Spykiddtmm » Mon Jul 06, 2020 3:56 pm

hey man it seems good but when it use auto lean it reacts every time i move left and right if you could make it so there is a delay or add something where it will only auto lean left after leaning right. it also start to auto lean when out of ads and then it leads to melee also i cant seem to get the auto lean to work, like i enable it and then it wont auto lean when i ads and shoot

but otherwise thank you i really didnt think anyone would reply
User avatar
Spykiddtmm
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Jul 01, 2020 3:08 pm

Re: Rainbow 6 Siege Ultimite Script in the works

Postby J2Kbr » Tue Jul 07, 2020 10:13 am

Please try the updated code below. Auto lean now only works if ADSing and once activated (left or right) it keeps on that side until LT is released and pressed again.
Code: Select all
/*         Controls
Touchpad + Right    = Rapid Fire All
Touchpad + Left     = Rapid Fire Sec
Touchpad + Down     = Rapid Fire Off
Touchpad + Circle   = Crouch Spam
 
 
Touchpad + Triangle = Lean Spam
Touchpad + Square    = Auto Lean
 
L2 + Left = Recoil profile Change
 
Hold Down For Spaz Mode
 
Press Up For 180
Double Tap UP For 360
 
*/

 
define ANTI_RECOIL_1 = 20;      //Doc
define ANTI_RECOIL_2 = 21;      //Bandit
define ANTI_RECOIL_3 = 20;      //Melusi
define ANTI_RECOIL_4 = 26;      //Smoke
define ANTI_RECOIL_5 = 24;      //Ela
 
define Anti_Recoil = TRUE;
define Toggle_Rapid_Fire = TRUE;
define Start_Rapid_Fire_On = FALSE;
define Toggle_Crouch_Spam = TRUE;
define Aim_Fire_Crouch_Spam = TRUE;
define Aim_Crouch_Spam = FALSE;
define Fire_Crouch_Spam = FALSE;
define Spin = TRUE;
define Auto_Scan = TRUE;
define Auto_Ping = TRUE;
define Auto_LB_Frag_Release = TRUE;
define Auto_RB_Frag_Release = FALSE;
define Melee_Protection = TRUE;
define Custom_LS_Deadzone = TRUE;
define Custom_RS_Deadzone = TRUE;
define Activation_Rumble = TRUE;
define Script_Welcome = TRUE;
define RS_ADS_VERTICAL_SENSITIVITY = 100;
define RS_ADS_HORIZONTAL_SENSITIVITY = 100;
define RS_LOOK_HORIZONTAL_SENSITIVITY = 90;
define RS_LOOK_VERTICAL_SENSITIVITY = 90;
define LONGEST_PRESS_FOR_TURN_ON = 255;
define TIME_FOR_TURN_ON = 255;
define DIRECTION_FOR_TURN_ON = 100;
define MINIMUM_WALK_SPEED_FOR_SPRINT = 0;
define MINIMUM_SPRINT_SPEED = 0;
define AUTO_PING_AIM_AND_SHOOTING_TIME_REQ = 150;
 
int AR = ANTI_RECOIL_1;
int AR_PROFILE;
int RS_VERTICAL_DEADZONE_UP = 5;
int RS_VERTICAL_DEADZONE_DOWN = 5;
int RS_HORIZONTAL_DEADZONE_LEFT = 4;
int RS_HORIZONTAL_DEADZONE_RIGHT = 4;
int CAM_SCAN_LOOP;
int Hold_Y = 0;
int TURN_ON_DIRECTION;
int TURN_ON_TIME;
int Crouch_Spam;
int Lean_Spam;
int Auto_Lean;
int Auto_Lean_Ready;
int Rapid_Fire_All;
int Rapid_Fire_Sec;
int Rapid_Fire_Is_Sec;
int AR_VERT = 23;
int AR_HOR = 0;
int OUTPUT_VERT;
int OUTPUT_HOR;
int VERT_SPEED;
int HOR_SPEED;
int milliseconds;
int seconds;
int SCOREBOARD_BUTTON;
int rumb_count;
int rumb_type;
 
main {
    vm_tctrl( + 7);
    if (get_controller() == PIO_PS4) SCOREBOARD_BUTTON = PS4_TOUCH;
    else  SCOREBOARD_BUTTON = XB1_VIEW;
    if (get_val(XB1_LT)) set_val(XB1_LT, 100);
    if (get_val(XB1_RT)) set_val(XB1_RT, 100);
    if (event_release(XB1_UP) && get_ptime(XB1_UP) <= LONGEST_PRESS_FOR_TURN_ON) {
        TURN_ON_TIME = TIME_FOR_TURN_ON;
        TURN_ON_DIRECTION = -DIRECTION_FOR_TURN_ON;
    }
    if (get_val(XB1_UP) && get_ptime(XB1_UP) <= LONGEST_PRESS_FOR_TURN_ON) set_val(XB1_UP, 0);
    if (get_val(XB1_LT)) {
        sensitivity(XB1_RX, NOT_USE, RS_ADS_HORIZONTAL_SENSITIVITY);
        sensitivity(XB1_RY, NOT_USE, RS_ADS_VERTICAL_SENSITIVITY);
    }
    else if (!get_val(XB1_LT)) {
        sensitivity(XB1_RX, NOT_USE, RS_LOOK_HORIZONTAL_SENSITIVITY);
        sensitivity(XB1_RY, NOT_USE, RS_LOOK_VERTICAL_SENSITIVITY);
    }
    if (TURN_ON_TIME >= 0) {
        TURN_ON_TIME = TURN_ON_TIME-get_rtime();
        set_val(XB1_RX, TURN_ON_DIRECTION);
    }
    if (get_val(XB1_LY) <= -MINIMUM_WALK_SPEED_FOR_SPRINT && event_press(XB1_LS) && !get_val(XB1_LT)) set_val(XB1_LY, -MINIMUM_SPRINT_SPEED);
    if (get_val(XB1_RS) && get_ptime(XB1_RS) >= 400) {
        combo_run(c_MELEE_LOOP);
        f_set_rumb(1, RUMBLE_RT);
    }
    if (get_val(XB1_RT) && get_ptime(XB1_RT) >= AUTO_PING_AIM_AND_SHOOTING_TIME_REQ) combo_run(c_Auto_Ping);
    if (get_val(XB1_LB) && get_ptime(XB1_LB) >= 3300) {
        set_val(XB1_LB, 0);
    }
    if (get_val(XB1_LB) && get_ptime(XB1_LB) >= 1800) {
        f_set_rumb(1, RUMBLE_LT);
    }
    if (get_val(XB1_DOWN) && get_ptime(XB1_DOWN) > 250) {
        if (abs(get_val(XB1_RY)) < 15) set_val(XB1_RY, 0);
        if (abs(get_val(XB1_RX)) < 15) set_val(XB1_RX, 0);
        combo_run(c_Shake_Mode);
    }
    if (event_release(XB1_Y) && get_ptime(XB1_Y) >= 1224) CAM_SCAN_LOOP = TRUE;
    if (CAM_SCAN_LOOP) {
        f_set_rumb(1, RUMBLE_LT);
        if (get_val(XB1_Y) || get_val(XB1_XBOX) || get_val(XB1_UP) || get_val(XB1_LT)) {
            CAM_SCAN_LOOP = FALSE;
            Hold_Y = 0;
        }
    }
    if (Hold_Y >= 1|| CAM_SCAN_LOOP) {
        Hold_Y = Hold_Y-get_rtime();
        set_val(XB1_Y, 100);
        if (!CAM_SCAN_LOOP) set_val(XB1_DOWN, 0);
        else if (Hold_Y < 0) set_val(XB1_Y, 0);
        if (Hold_Y <=  -40) Hold_Y = 1224;
    }
    if (get_val(SCOREBOARD_BUTTON) && get_ptime(SCOREBOARD_BUTTON) >= 204) {
        if (event_press(XB1_DOWN)) {
            Rapid_Fire_All = FALSE;
            Rapid_Fire_Sec = FALSE;
            Rapid_Fire_Is_Sec = FALSE;
        }
        if (event_press(XB1_LEFT)) {
            Rapid_Fire_All = FALSE;
            Rapid_Fire_Sec = TRUE;
            Rapid_Fire_Is_Sec = FALSE;
        }
        if (event_press(XB1_RIGHT)) {
            Rapid_Fire_All = TRUE;
            Rapid_Fire_Sec = FALSE;
            Rapid_Fire_Is_Sec = FALSE;
        }
        // Touchpad + Triangle = Lean Spam
        if (event_press(XB1_Y)) {
            Lean_Spam = !Lean_Spam;
        }
        // Touchpad + Square    = Auto Lean
        if (event_press(XB1_X)) {
            Auto_Lean = !Auto_Lean;
        }
        if (event_press(XB1_B)) Crouch_Spam =! Crouch_Spam;
        if (event_press(XB1_LS) && AR_VERT > 13) AR_VERT=AR_VERT-( 1);
        if (event_press(XB1_RS) && AR_VERT <= 98) AR_VERT=AR_VERT+( 1);
        if (event_press(XB1_LEFT) || event_press(XB1_UP) || event_press(XB1_DOWN) || event_press(XB1_B) || event_press(XB1_LS) || event_press(XB1_RS)) combo_run(c_Close_Scoreboard);
        combo_run(c_Stop_Button_Activation);
    }
    // Lean Mods
    if(Lean_Spam) {
        if(get_val(XB1_RS) || get_val(XB1_LS)) {
            combo_run(LeanSpamBoth);
        }
    }
    if(Auto_Lean) {
        if(get_val(XB1_LT)) {
            if(Auto_Lean_Ready) {
                if(get_val(XB1_LX) >= 50) {
                    combo_run(AutoLeanRight);
                    Auto_Lean_Ready = FALSE;
                } else if(get_val(XB1_LX) <= -50) {
                    combo_run(AutoLeanLeft);
                    Auto_Lean_Ready = FALSE;
                }
            }
        } else Auto_Lean_Ready = TRUE;
    }
    if (Rapid_Fire_Sec && event_press(XB1_Y)) Rapid_Fire_Is_Sec =! Rapid_Fire_Is_Sec;
    if ((Rapid_Fire_All|| Rapid_Fire_Is_Sec) && get_val(XB1_RT)) combo_run(c_Rapid_Fire);
    else if (combo_running(c_Rapid_Fire)) combo_stop(c_Rapid_Fire);
    if (Rapid_Fire_All) combo_run(c_Rapid_Fire_LED_Flash);
    else if (Rapid_Fire_Sec && !Rapid_Fire_Is_Sec) f_Colour_LED(0, 1, 1, 0);
    else if (Rapid_Fire_Sec && Rapid_Fire_Is_Sec) combo_run(c_Rapid_Fire_Sec_LED_Flash);
    else  f_Colour_LED(0, 1, 0, 0);
    if (Crouch_Spam && get_val(XB1_LT) && get_ptime(XB1_LT) > 400 && get_val(XB1_RT)) combo_run(c_Crouch_Spam);
    if (event_press(XB1_RS)) combo_run(c_Accidental_Melee_Protection);
    if (get_val(XB1_LT) && get_val(XB1_RT) && get_rumble(RUMBLE_A) && get_rumble(RUMBLE_B) && !CAM_SCAN_LOOP) combo_run(c_Anti_Recoil);
    if (abs(get_val(XB1_LY)) < 15 && abs(get_val(XB1_LX)) < 15 && abs(get_val(XB1_RY)) < 15 && abs(get_val(XB1_RX)) < 15) {
        milliseconds = milliseconds+ get_rtime();
        if (milliseconds >= 1000) {
            milliseconds = milliseconds-1000;
            seconds = seconds+ 1;
            if (seconds >= 50) {
                combo_run(c_Anti_AFK);
                seconds = 0;
            }
        }
    }
    if (abs(get_val(XB1_RX)) >= 15|| abs(get_val(XB1_RY)) >= 15|| abs(get_val(XB1_LX)) >= 15|| abs(get_val(XB1_LY)) >= 15|| get_val(XB1_XBOX) || get_val(XB1_A) || get_val(XB1_UP) || get_val(XB1_DOWN) || get_val(XB1_LEFT) || get_val(XB1_RIGHT)) {
        milliseconds = 0;
        seconds = 0;
    }
    if (rumb_count) combo_run(c_NOTIFY);
 
    if(get_val(XB1_LT)) {
        if(event_press(XB1_LEFT)) {
            AR_PROFILE++;
 
            if(AR_PROFILE > 5) {
                AR = ANTI_RECOIL_1;
                AR_PROFILE = 1;
            }
 
            if(AR_PROFILE == 1) AR_VERT = ANTI_RECOIL_1;
            if(AR_PROFILE == 2) AR_VERT = ANTI_RECOIL_2;
            if(AR_PROFILE == 3) AR_VERT = ANTI_RECOIL_3;
            if(AR_PROFILE == 4) AR_VERT = ANTI_RECOIL_4;
            if(AR_PROFILE == 5) AR_VERT = ANTI_RECOIL_5;
        }
    }   
}
 
combo LeanSpamBoth {
    wait(100);
    set_val(XB1_RS, 0);
    set_val(XB1_LS, 0);
    wait(90);
    set_val(XB1_RS, 0);
    set_val(XB1_LS, 0);
}
 
combo AutoLeanRight {
    set_val(XB1_RS, 100);
    wait(100);
}
 
combo AutoLeanLeft {
    set_val(XB1_LS, 100);
    wait(100);
}
 
combo c_MELEE_LOOP {
    set_val(XB1_RS, 0);
    wait(714);
    set_val(XB1_RS, 100);
    wait(306);
}
 
combo c_Auto_Ping {
    set_val(XB1_LEFT, 100);
    wait(34);
    wait(1938);
}
 
combo c_Crouch_Spam {
    set_val(XB1_B, 100);
    wait(17);
    wait(85);
}
 
combo c_Shake_Mode {
    set_val(XB1_RY,  -100);
    wait(17);
    set_val(XB1_RX, 100);
    wait(17);
    set_val(XB1_RY, 100);
    wait(17);
    set_val(XB1_RX,  -100);
    wait(17);
}
 
combo c_Anti_AFK {
    set_val(XB1_LS, 100);
    wait(40);
}
 
combo c_Anti_Recoil {
    if (get_val(XB1_RY) >= 15) VERT_SPEED = get_val(XB1_RY)  -14;
    else if (get_val(XB1_RY) <=  -15|| AR_VERT <= 11) VERT_SPEED = get_val(XB1_RY);
    else  VERT_SPEED = 0;
    if (!Rapid_Fire_Is_Sec) OUTPUT_VERT = VERT_SPEED+ AR_VERT;
    else  OUTPUT_VERT = VERT_SPEED+ 19;
    if (OUTPUT_VERT > RS_ADS_VERTICAL_SENSITIVITY) OUTPUT_VERT = RS_ADS_VERTICAL_SENSITIVITY;
    set_val(XB1_RY, OUTPUT_VERT);
    if (abs(AR_HOR) <= 10) HOR_SPEED = get_val(XB1_RX);
    else if (get_val(XB1_RX) >= 11) HOR_SPEED = get_val(XB1_RX)  -10;
    else if (AR_HOR <=  -10 && get_val(XB1_RX) <=  -11) HOR_SPEED = get_val(XB1_RX) + 10;
    else  HOR_SPEED = 0;
    OUTPUT_HOR = HOR_SPEED+ AR_HOR;
    if (OUTPUT_HOR > RS_ADS_HORIZONTAL_SENSITIVITY) OUTPUT_HOR = RS_ADS_HORIZONTAL_SENSITIVITY;
    if (OUTPUT_HOR < inv(RS_ADS_HORIZONTAL_SENSITIVITY)) OUTPUT_HOR = inv(RS_ADS_HORIZONTAL_SENSITIVITY);
    set_val(XB1_RX, OUTPUT_HOR);
}
 
combo c_Rapid_Fire {
    set_val(XB1_RT, 100);
    wait(17);
    set_val(XB1_RT, 0);
    wait(17);
}
 
combo c_Accidental_Melee_Protection {
    set_val(XB1_RS, 0);
    wait(17);
    set_val(XB1_RS, 100);
    wait(17);
}
 
combo c_Close_Scoreboard {
    set_val(SCOREBOARD_BUTTON, 0);
    wait(34);
    f_set_rumb(1, RUMBLE_LT);
    f_set_rumb(1, RUMBLE_RT);
    wait(68);
}
 
combo c_Stop_Button_Activation {
    set_val(XB1_UP, 0);
    set_val(XB1_DOWN, 0);
    set_val(XB1_LEFT, 0);
    set_val(XB1_RIGHT, 0);
    set_val(XB1_LB, 0);
    set_val(XB1_RB, 0);
    set_val(XB1_A, 0);
    set_val(XB1_B, 0);
    set_val(XB1_LS, 0);
    set_val(XB1_RS, 0);
    wait(357);
}
 
combo c_NOTIFY {
    set_rumble(rumb_type, 2);
    wait(136);
    reset_rumble();
    wait(136);
    rumb_count--;
}
 
combo c_Rapid_Fire_LED_Flash {
    f_Colour_LED(0, 0, 1, 0);
    wait(85);
    f_Colour_LED(0, 0, 0, 0);
    wait(17);
}
 
combo c_Rapid_Fire_Sec_LED_Flash {
    f_Colour_LED(0, 1, 1, 0);
    wait(85);
    f_Colour_LED(0, 0, 0, 0);
    wait(17);
}
 
 
function f_set_rumb(r_num, r_type) {
    rumb_count = r_num;
    rumb_type = r_type;
}
 
function f_Colour_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);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Rainbow 6 Siege Ultimite Script in the works

Postby Intervirus » Fri Aug 07, 2020 7:30 pm

Can I use this Anti Recoil in combination with my Xim? Thanks in advance!
User avatar
Intervirus
Sergeant
Sergeant
 
Posts: 9
Joined: Fri Aug 07, 2020 10:36 am

Re: Rainbow 6 Siege Ultimite Script in the works

Postby Mad » Fri Aug 07, 2020 10:09 pm

Intervirus wrote:Can I use this Anti Recoil in combination with my Xim? Thanks in advance!

Sure, since you have a titan two you'll need to put this at the very top before compiling:
Code: Select all
#include <titanone.gph>
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: Rainbow 6 Siege Ultimite Script in the works

Postby AimbotExt » Sun Aug 09, 2020 10:15 am

Okay guys I'm new to the Titan two and will be pairing it with my xim apex looking for good scripts and tutorials that can help me hit the ground running. I mainly play R6 and apex legends but will be focusing on R6 to start off the learning process.
User avatar
AimbotExt
Private
Private
 
Posts: 1
Joined: Sun Aug 09, 2020 10:11 am

Re: Rainbow 6 Siege Ultimite Script in the works

Postby Mad » Sun Aug 09, 2020 10:25 am

AimbotExt wrote:Okay guys I'm new to the Titan two and will be pairing it with my xim apex looking for good scripts and tutorials that can help me hit the ground running. I mainly play R6 and apex legends but will be focusing on R6 to start off the learning process.

Welcome. :smile0201:

For setup information check out the wiki: https://www.consoletuner.com/wiki/index.php?id=t2
Here are some of the scripts you can try: https://www.consoletuner.com/greslib/?0 ... dyBzaXg%3D
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 67 guests