Auto Strafe Request
25 posts
• Page 1 of 3 • 1, 2, 3
Auto Strafe Request
Has anyone got a strafe script that when i press LB and RT together on xbox i auto strafe until released?
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
- 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);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Auto Strafe Request
Thankyou!
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
Thats brilliant btw jus tried it! Btw if i wanted to move faster how would i alter it?
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
Beryl wrote:Thats brilliant btw jus tried it! Btw if i wanted to move faster how would i alter it?
Second line.
- Code: Select all
#define STRAFE_TIME 500
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Auto Strafe Request
Thankyou, so if i increase does that make me move faster or slower?
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
Beryl wrote:Thankyou, so if i increase does that make me move faster or slower?
Slower.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Auto Strafe Request
Cool thank you will play around with it tommorow. Thanks again for your help.
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
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);
}
1st off this works fantastic thankyou, 2nd could you alter it so i could have the strafe to start when i hold the (LT) and the (RT) so im able to ads then on fire start straffing? but if possible could you add a delay? So im able to still fire off a snipe from a window without moving straight away?
Hope this makes sense
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Auto Strafe Request
Change line 6 to:
- Code: Select all
if(is_active(XB1_LT) && check_active(XB1_RT, 500)) combo_run(Strafe);
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
25 posts
• Page 1 of 3 • 1, 2, 3
Return to GPC2 Script Programming
Who is online
Users browsing this forum: midg3t2 and 185 guests