7da64d3782
Mako88 reports that some users want not to autoselect while firing, but do not notice when a new weapon is added to the HUD, and end up never activating a preferred weapon. Add a new autoselect mode that remembers what would be selected and switches to it once the player ceases firing. Changes since Mako88's proposed version: - Use `enum class` for autoselection mode and a radio button to represent the decision of Immediate/Never/Delayed. - Handle delayed autoselect for vulcan ammo. - Set Delayed_primary == Primary_weapon to indicate no change is needed, rather than Delayed_primary==-1. This lets some paths use Delayed_primary without checking for a magic value. - Likewise Delayed_secondary / Secondary_weapon. - Update Delayed_primary/Delayed_secondary when changing active primary/secondary weapon, so that a player who changes weapons while firing will automatically clear any deferred change. Requested-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/97> Based-on-patch-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/pull/147> |
||
---|---|---|
common | ||
contrib | ||
d1x-rebirth | ||
d2x-rebirth | ||
similar | ||
.gitignore | ||
COPYING.txt | ||
GPL-3.txt | ||
INSTALL.markdown | ||
SConstruct |