Rainbow Six Siege Circle Strafing Script Conversion

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

Rainbow Six Siege Circle Strafing Script Conversion

Postby SnowSupreme » Tue Jan 12, 2021 1:00 am

Hey, can anyone help me convert this script to be compatible with Titan One or at least make something similar? I use a XIM Apex on Rainbow Six Siege and whenever I try to strafe while sprinting it cancels the sprint. User pablosscripts made a fix for this by making a script for the Titan Two in this post: viewtopic.php?f=26&t=11360. Is it possible for anyone to convert the following code to Titan One or make something similar? Thanks.

Code: Select all
// If you are using any button toggle flags add them here, so this code isn't executed in scenarios where you will
    // never be able to sprint anyway (e.g. you wouldn't want to limit strafe speed while ADS'ing for example).
    if(!get_val(BUTTON_8) && !get_val(BUTTON_5) && !get_val(BUTTON_7) && !get_val(BUTTON_4)) {
        // How to use - if you are using Easy Sprint, -50.00 should be replaced with your Easy Sprint variable.
        if(get_val(STICK_2_Y) <= -50.00) {
            // How to use - walk forward (W) and initiate a sprint. Then press A (strafe) - if doing so breaks you out of
            // your sprint, then adjust the two values until strafing no longer interrupts your sprinting.
            if(get_val(STICK_2_X) <= -50.00) {
                set_val(STICK_2_X, -50);
            }
            // How to use - walk forward (W) and initiate a sprint. Then press D (strafe) - if doing so breaks you out of
            // your sprint, then adjust the two values until strafing no longer interrupts your sprinting.
            if(get_val(STICK_2_X) >= 50.00) {
                set_val(STICK_2_X, 50);
            }
        }
    }
User avatar
SnowSupreme
Private
Private
 
Posts: 1
Joined: Mon Jan 11, 2021 9:33 pm

Re: Rainbow Six Siege Circle Strafing Script Conversion

Postby Mad » Tue Jan 12, 2021 1:31 am

Welcome. :smile0201:
Code: Select all
main {
// If you are using any button toggle flags add them here, so this code isn't executed in scenarios where you will
    // never be able to sprint anyway (e.g. you wouldn't want to limit strafe speed while ADS'ing for example).
    if(!get_val(XB1_LT) && !get_val(XB1_RT) && !get_val(XB1_LB) && !get_val(XB1_RB)) {
        // How to use - if you are using Easy Sprint, -50.00 should be replaced with your Easy Sprint variable.
        if(get_val(XB1_LY) <= -50) {
            // How to use - walk forward (W) and initiate a sprint. Then press A (strafe) - if doing so breaks you out of
            // your sprint, then adjust the two values until strafing no longer interrupts your sprinting.
            if(get_val(XB1_LY) <= -50) {
                set_val(XB1_LY, -50);
            }
            // How to use - walk forward (W) and initiate a sprint. Then press D (strafe) - if doing so breaks you out of
            // your sprint, then adjust the two values until strafing no longer interrupts your sprinting.
            if(get_val(XB1_LY) >= 50) {
                set_val(XB1_LY, 50);
            }
        }
    }
}
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 75 guests