Help needed to suspend rapid fire while using foot switch

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

Help needed to suspend rapid fire while using foot switch

Postby DEMY » Wed Aug 30, 2017 4:11 am

Scripting doesning seem to be my thing :icon_frown:

I am using the rapid fire from the gamepack of bf1, since I'm using the "first to second shot delay " feature,
but I would like to suspend rapid fire while I'm stepping on the foot switch(key bind "1").

May anyone have a solution?

Thanks in advance
User avatar
DEMY
Sergeant
Sergeant
 
Posts: 6
Joined: Sun Nov 20, 2016 12:07 pm

Re: Help needed to suspend rapid fire while using foot switc

Postby antithesis » Thu Aug 31, 2017 10:45 pm

This should be easy to do if you've bound 1 to an in-game button press, like R3. It'd be something like "if (event_active (R3)) { combo_stop (RapidFire); }. Alternately, bind an on/off toggle to 1. It could also be done using an Input Translator.

However, and it's a big however, you're using a GamePack, so that won't work unless it's built into the script. You'd need a custom T2 script or for the GamePack / ModPack to support an over-ride. I've been putting exactly that in mine of late and it's really easy to do, but the script author will need to add it.
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: Help needed to suspend rapid fire while using foot switc

Postby J2Kbr » Fri Sep 01, 2017 1:04 pm

Alternatively, and considering using a Gamepack, it is possible create an Input Translator to map the KEY_1 to BUTTON_1 and a second mapping of the same KEY_1 to BUTTON_17. The combination BUTTON_1 + BUTTON_17 is used to enable/disable the MODs of the Gamepack, so loading this Input Translator along with the Gamepack in the same memory slot will allow you enable/disable the mods by pressing the foot switch.
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: Help needed to suspend rapid fire while using foot switc

Postby antithesis » Sat Sep 02, 2017 7:35 am

Nice solution J2K! I was completely unaware of using Input Translators to do that :smile0208:
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: Help needed to suspend rapid fire while using foot switc

Postby jayjack » Sat Sep 02, 2017 2:20 pm

Not sure if I'd need a foot-switch, but they are cheap.
Might get one just in case a need arises.
Would they work in the PROG jack of the T2 with a OTG cable?
User avatar
jayjack
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 284
Joined: Tue Jul 26, 2016 2:41 pm

Re: Help needed to suspend rapid fire while using foot switc

Postby antithesis » Sun Sep 03, 2017 12:06 am

I use my Stinky Board through a hub attached to the Xim. No need to eat a T2 slot if you have both devices.
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 98 guests