dxx-rebirth/common
Kp 7da64d3782 Add new autoselect-while-firing mode: "when firing stops"
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>
2015-10-18 18:11:57 +00:00
..
2d Mark various per-file structures as static 2015-08-12 03:11:46 +00:00
3d Fix SDL build break in clipper.h 2015-10-09 02:46:09 +00:00
arch Add fwd-event.h with forward declarations of event.h 2015-10-09 02:46:10 +00:00
editor Allow nullptr for gr_get_string_size 2015-09-29 02:41:22 +00:00
include Move valptridx error reporting out of main header 2015-10-13 02:43:25 +00:00
main Add new autoselect-while-firing mode: "when firing stops" 2015-10-18 18:11:57 +00:00
maths Add compile-time check for non-overlapping vm_matrix_x_matrix 2015-08-13 03:15:52 +00:00
mem Move DbgShowMemInfo to CArg 2015-08-11 03:05:55 +00:00
misc Pass filename to Error 2015-10-11 22:21:00 +00:00
texmap Move tmap scanline pointers to structure 2015-07-25 23:10:47 +00:00
ui Reuse computed string length 2015-09-29 02:41:22 +00:00