Crouch run left to right request

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

Crouch run left to right request

Postby Beryl » Fri Apr 08, 2022 1:37 pm

Im looking for a movement script for PUBG my aim is when im running LS/L3 i want to be able to crouch up and down as i move the analog left to right just to be harder to track. Has anyone got any ideas on this? Some of the top players do this all the time in game. Thanks in advance
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Crouch run left to right request

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

Code: Select all
#include <xb1.gph>
main {
    if(abs(get_actual(XB1_LX)) >= 60f) combo_run(crouch);
}
combo crouch {
    set_val(XB1_B, 100);
    wait(60);
    set_val(XB1_B, 0);
    wait(60);
}   
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Crouch run left to right request

Postby Beryl » Sat Apr 09, 2022 2:30 pm

Thats brilliant! But could you add that L3 needs to be held aswell? Just as im now jumping out of cars when i press left or right?
I hold L3 when i run so if you could add with the stick movement that woyld be perfect!
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Crouch run left to right request

Postby Mad » Sun Apr 10, 2022 4:46 am

Code: Select all
#include <xb1.gph>
main {
    if(is_active(XB1_LS) && abs(get_actual(XB1_LX)) >= 60f) {
        combo_run(crouch);
    }
}
combo crouch {
    set_val(XB1_B, 100);
    wait(60);
    set_val(XB1_B, 0);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Crouch run left to right request

Postby Beryl » Sun Apr 10, 2022 4:54 am

Thanks Mad! I tried myself but what ever id done i got an error of &&, will give yours a try when i get on. Thanks again for your help
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm

Re: Crouch run left to right request

Postby Beryl » Mon Apr 11, 2022 5:35 am

Thanks Mad id go as far to say this is probly 1 of the best scripts to use in the game. I think i asked once before but is there an idiots guide? Id love to improve my knowledge and try do some scripts myself iv so many ideas lol
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 198
Joined: Fri Nov 27, 2020 7:47 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 176 guests