Page 3 of 3

Re: Auto Strafe Request

PostPosted: Sat May 14, 2022 6:45 am
by Beryl
That looks perfect but could you give me a version that just has RT fire in it purely for just hip fire but that looks good. Your the best

Re: Auto Strafe Request

PostPosted: Sat May 14, 2022 8:04 am
by Mad
Code: Select all
#include <xb1.gph>
#define STRAFE_TIME 500
#define THROWABLE_DELAY 1500
bool toggle;
main {
    if(event_active(XB1_MENU)) toggle = !toggle;
    if(toggle) {
        if(is_release(XB1_LX) * is_release(XB1_LY)) {
            if(check_release(XB1_RIGHT, THROWABLE_DELAY)) {
                if(is_active(XB1_RT)) combo_run(Strafe);
                else if(Strafe) combo_stop(Strafe);
            }
        }
        else if(Strafe) combo_stop(Strafe);
    }
}
combo Strafe {
    set_val(XB1_LX, -100);
    wait(STRAFE_TIME);
    set_val(XB1_LX, 100);
    wait(STRAFE_TIME);
}

Re: Auto Strafe Request

PostPosted: Sat May 14, 2022 7:04 pm
by Beryl
Can you remove the toggle so its on when i fire as its clashing with another script? I did try myself but getting warning msgs, thankyou

Re: Auto Strafe Request

PostPosted: Mon May 16, 2022 9:33 pm
by Mad
Code: Select all
#include <xb1.gph>
#define STRAFE_TIME 500
#define THROWABLE_DELAY 1500
main {
    if(is_release(XB1_LX) * is_release(XB1_LY)) {
        if(check_release(XB1_RIGHT, THROWABLE_DELAY)) {
            if(is_active(XB1_RT)) combo_run(Strafe);
            else if(Strafe) combo_stop(Strafe);
        }
    }
    else if(Strafe) combo_stop(Strafe);
}
combo Strafe {
    set_val(XB1_LX, -100);
    wait(STRAFE_TIME);
    set_val(XB1_LX, 100);
    wait(STRAFE_TIME);
}

Re: Auto Strafe Request

PostPosted: Tue May 17, 2022 6:12 am
by Beryl
Thankyou! i did try myself but i kept getting warnings so in the in the end i changed a few buttons and got it to work but ill now use this version! Wish there was an easier way where we could just build a script instead of writing it. But im learning slowly!