Download (https://bitbucket.org/stormbringer951/toggleweapongroup/downloads/ToggleWeaponGroup%201.1.0.zip)Supports Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181.0)
View source code (https://bitbucket.org/stormbringer951/toggleweapongroup/src/master/)
Demonstration Image:
Spoiler
(https://i.imgur.com/2neCIxb.gif)
A utility mod that adds some rebindable in-combat hotkeys:
- Deselect All Weapon Groups: Default key [6]. Deselects all weapon groups, even if all 5 weapon groups are defined. Useful if you want to autofire everything and just sit back and pilot.
- Toggle Fire Mode: Default key [7]. Switch selected weapon group between alternating and linked fire type.
- Quick Hold Fire: Default key [8]. Hold down to switch off all weapon groups that do not contain a point defence weapon (or small non-missile weapons when Integrated Point Defence AI is installed) as long as hotkey is held down, re-enabled when key is released.
Inspired by a conversation on Discord with Johnny the Wedge Guy, Avanitia, Snrasha and TheKart.
Credits
Lazywizard - permission to use his code from Empty Weapons Group Selector (https://bitbucket.org/LazyWizard/prototypes/downloads/) for Deselect all Weapons Groups hotkey.
Changelog
1.1.0 - 2018-05-24
- Added Unselect all weapons groups button - thanks to LazyWizard for use of the code from his Empty Weapons Selector mod
1.0.0 - 2018-05-17
- Initial Implementation
Is there a way to make "Hold fire" a toggle?
I created this simple AutoHotkey script as a temporary solution but it would be nice if it was a setting in the mod config files.
#IfWinActive Starsector 0.9.1a-RC8
XButton1::
KeyDown := !KeyDown
If KeyDown
SendInput {8 down}
Else
SendInput {8 up}
Return