Apex Legends: simple script to left slide & right slide?

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

Apex Legends: simple script to left slide & right slide?

Postby teckx » Tue Apr 21, 2020 8:39 pm

Not sure why but having trouble sliding left and right while playing apex legends for Xbox

Could someone help me to write a basic script and combo for the left and right slide ?
If ‘left’ is down & crouch is pushed run combo slide left
Same for the right side ?
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm

Re: Apex Legends: simple script to left slide & right slide?

Postby J2Kbr » Wed Apr 22, 2020 9:47 am

I have something similar to what you are requesting in my personal Apex Legends script, it is very handy on gunfights, for example, while reloading this movement is perfect to avoid incoming shots.

Works like this: if the left stick is all the way to left or to right or to back, press the crouch button to slide to that direction (in my case the crouch button is R3).

Code: Select all
main {
    // Easy Slide
    if(event_active(BUTTON_6)) {
        if(abs(get_actual(STICK_2_X)) >= 90.0 || get_actual(STICK_2_Y) >= 90.0) {
            combo_run(EasySlide);
        }
    }
    if(EasySlide) {
        set_val(BUTTON_6, 0.0);
        set_val(BUTTON_8, 0.0);
    }
}
 
combo EasySlide {
    wait(64);
    set_val(BUTTON_16, 100.0);
    wait(32); wait(256);
    set_val(BUTTON_16, 100.0);
    wait(32); wait(32);
    set_val(BUTTON_6, 100.0);
    wait(32);
}
 
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: Apex Legends: simple script to left slide & right slide?

Postby teckx » Thu Apr 23, 2020 1:08 am

J2Kbr wrote:I have something similar to what you are requesting in my personal Apex Legends script, it is very handy on gunfights, for example, while reloading this movement is perfect to avoid incoming shots.

Works like this: if the left stick is all the way to left or to right or to back, press the crouch button to slide to that direction (in my case the crouch button is R3).

Code: Select all
main {
    // Easy Slide
    if(event_active(BUTTON_6)) {
        if(abs(get_actual(STICK_2_X)) >= 90.0 || get_actual(STICK_2_Y) >= 90.0) {
            combo_run(EasySlide);
        }
    }
    if(EasySlide) {
        set_val(BUTTON_6, 0.0);
        set_val(BUTTON_8, 0.0);
    }
}
 
combo EasySlide {
    wait(64);
    set_val(BUTTON_16, 100.0);
    wait(32); wait(256);
    set_val(BUTTON_16, 100.0);
    wait(32); wait(32);
    set_val(BUTTON_6, 100.0);
    wait(32);
}
 


Thank you!
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm

Re: Apex Legends: simple script to left slide & right slide?

Postby teckx » Fri Jan 28, 2022 7:18 pm

Im using M&KB HID Output
For some reason this isnt working.
Device monitor is reading the stick_2_x & y .

It works for others that arnt using m&kb


any help please :icon_frown:
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm

Re: Apex Legends: simple script to left slide & right slide?

Postby Mad » Fri Jan 28, 2022 9:30 pm

teckx wrote:Im using M&KB HID Output
For some reason this isnt working.

This is a controller script. It wont work for HID output.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Apex Legends: simple script to left slide & right slide?

Postby teckx » Sat Jan 29, 2022 2:58 am

Mad wrote:
teckx wrote:Im using M&KB HID Output
For some reason this isnt working.

This is a controller script. It wont work for HID output.


Wonder if I remove wasd from the input translator so they’re no longer associated with stick_2
Then map wasd in xim
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 80 guests