Auto Strafe Request

GPC2 script programming for Titan Two. Code examples, questions, requests.

Re: Auto Strafe Request

Postby Beryl » Thu Feb 17, 2022 10:45 pm

Your the best thankyou
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Beryl » Thu Mar 10, 2022 3:45 pm

Hi again is there away to add a B spam in this aswell, my aim when i hip fire i want to move left and right whilst crouching quick? All why shooting? Possible
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Beryl » Fri Apr 08, 2022 5:10 pm

Can anyone add a delay in this script? Iv managed to tweek it to fire on ads to strafe but i still want to be able single tap dmrs without the strafe purely as it pulls left too much and moves me off target thanks
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Mad » Fri Apr 08, 2022 10:40 pm

Beryl wrote:Can anyone add a delay in this script?

That was in my last reply. You can change the current delay of 500ms to whatever.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Auto Strafe Request

Postby Beryl » Sat Apr 09, 2022 1:16 am

Thank you mad! I managed to figure a work around by adding another wait strafe time under combo strafe and it worked but will edit and add yours as i know itl work better. Im actually learning abit no. Thanks as always
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Beryl » Tue Apr 26, 2022 12:00 am

Mad wrote:
Code: Select all
#include <xb1.gph>
#define STRAFE_TIME 500
 
main {
    if(is_release(XB1_LX) * is_release(XB1_LY)) {
        if(is_active(XB1_LB) && is_active(XB1_RT)) combo_run(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);
}



This by far the best strafe script iv used would it be possible to add a toggle version where the activation button is my inventory button which is button_3
Just so i could use this as a standalone auto move for when im looting as the 1 im using feels very slow, thanks!
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Mad » Wed Apr 27, 2022 8:48 am

Code: Select all
#include <xb1.gph>
#define STRAFE_TIME 500
bool toggle;
main {
    if(event_active(XB1_MENU)) toggle = !toggle;
    if(toggle) {
        if(is_release(XB1_LX) * is_release(XB1_LY)) {
            if(is_active(XB1_LB) && is_active(XB1_RT)) combo_run(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);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Auto Strafe Request

Postby Beryl » Fri May 13, 2022 9:12 am

Another request sorry lol
Is there a way to have the straff just to start on RT press so i can straff when hip firing? BUT somehow add a temp deactivation if i press D PAD RIGHT to select a throwable as i dont want to straff when i use these?
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Beryl » Fri May 13, 2022 10:08 pm

Anyone?
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Auto Strafe Request

Postby Mad » Sat May 14, 2022 12:11 am

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_LB) && 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);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

PreviousNext

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 89 guests

cron