andrei-drexler / ironwail

High-performance QuakeSpasm fork
GNU General Public License v2.0
480 stars 43 forks source link

[Feature Request] Allow multiple "impulse" commands per frame #283

Open tunbridgep opened 6 months ago

tunbridgep commented 6 months ago

No matter how many times the impulse command is used, it always only ever executes once per frame, making certain bindings impossible.

For instance:

alias "best_weapon" "impulse 2;impulse 3;impulse 4;impulse 5;impulse 8"
bind "c" "best_weapon"

Expected behaviour: It selects the best non-explosive weapon we have (similar to how autoswitch works when out of ammo).

Actual behaviour: It selects the lightning gun, but fails and simply says "No Weapon" if we don't have it (or it runs out of ammo) without selecting anything else, the other impulse commands are ignored.

Alternatively, allow multiple stacked impulses in one command, similar to other source ports: https://quakeone.com/forum/quake-help/quake-clients/12262-quakespasm-and-selecting-bestweapon