Auto Strafe Request
25 posts
• Page 3 of 3 • 1, 2, 3
Re: Auto Strafe Request
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
-
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
#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);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Auto Strafe Request
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
-
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
#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);
}
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! 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!
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
25 posts
• Page 3 of 3 • 1, 2, 3
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 84 guests