vkQuake icon indicating copy to clipboard operation
vkQuake copied to clipboard

Added weapon bindings to control options

Open albrechtjess opened this issue 2 years ago • 4 comments

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.

albrechtjess avatar Sep 19 '21 15:09 albrechtjess

This would be really useful for servers especially in case where you need to start play over in longer map packs.

cmbernard333 avatar Oct 12 '21 00:10 cmbernard333

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.

JosiahJack avatar Jul 25 '22 03:07 JosiahJack

What is bindlist.lst?

Novum avatar Jul 25 '22 22:07 Novum

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: keep keybinds

JosiahJack avatar Jul 25 '22 23:07 JosiahJack

Fixed by c523480a61a38bb12cb6e24f0750084b71407ff0

Novum avatar Dec 08 '22 14:12 Novum