vkQuake
vkQuake copied to clipboard
Added weapon bindings to control options
I was able to add the weapon bindings to options with the impulse commands in menu.c. After doing this I noticed the UI doesn't scale to fit the new options. I did some minor adjustments to get them to fit on screen but could still use some improvements as the UI goes off-screen when the scale is turned up too high. I included the original's in comments for quick comparisons.
This would be really useful for servers especially in case where you need to start play over in longer map packs.
Ideally we'd add support for bindlist.lst and have a default one for vanilla in vkquake.pak. I'm planning to work on bindlist support soon and PR to the various popular engines these days, so that might deprecate this PR as I'll need a scrolling method. +1 for the idea.
What is bindlist.lst
?
Bindlist is a somewhat obscure feature, original with Quake 2, that lets mods specify the keybinds available in the options menu, letting any custom impulses and such be listed in the menu and able to be set there. It's been rather infrequently implemented which is somewhat sad.
Example syntax:
"impulse 10" "change weapon"
"impulse 12" "prev weapon"
"+jump" "jump / swim up"
"+forward" "walk forward"
"+back" "backpedal"
...and so forth.
This lets mods add their own keybinds to the in-game menu like this:
Fixed by c523480a61a38bb12cb6e24f0750084b71407ff0