kondrak / vkQuake2

id Software's Quake 2 v3.21 with mission packs and Vulkan support (Windows, Linux, macOS, FreeBSD, Raspberry Pi 4)
GNU General Public License v2.0
896 stars 91 forks source link

Keybind changes in game also have their defaults #87

Closed AluminumHaste closed 4 years ago

AluminumHaste commented 4 years ago

Whenever I customize my controls in game, I exit and re-enter and they all have the changes I made AND their defaults. I don't want those defaults set. If I unbind a key to nothing, it should remain nothing.

After clearing the keybinds and setting it up the way I want: quake2vk_custom

After closing the game and re-opening it: quake2vk_custom02

kondrak commented 4 years ago

Hi! This ia a designed feature of Quake 2 and one that involves processing a default.cfg file embedded in one of the game's pak files. CTRL and MOUSE1 (possibly some other keys as well) are special cases and if they're unbound, the scripts assigns their pre-assigned action. I suggest you create an autoexec.cfg file and add unbind CTRL to it if you really care about having it unbound at all times. Modifying the game code here seems like a wasted effort.