csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

[Mac] Issue with alias binds being cleared, other keybind issues

Open htownclyde opened this issue 10 years ago • 0 comments

EDIT: I figured out I can just make an autoexec.cfg to fix this. Thanks to 3kliksphilip for making a video with that. If anyone wants to use command+mouse1 for attack2, the code I made still works fine.

Before the new updates, I was able to use command+mouse1 (pressing down on the trackpad) to use the attack2 function (taking off silencers, scoping in). Now, attack2 is for some reason bound to mouse2. That means I have to right click my trackpad to scope in, take off silencers, or use the secondary knife attack. That's hard to do while playing, so I devised this set of console commands to remedy it.

bind command +combo alias +combo "bind mouse1 +attack2" alias -combo "unbind mouse1; -attack2; bind mouse1 +attack"

This fix worked great, until I restarted my game. When my game reopened, and I tried to use the scope or secondary knife attack, console gave me this error:

When I pressed down command:

Unknown command: +combo When I released command: Unknown command: -combo

To me it seems like my "alias" binds were cleared when I restarted the game. I thought, well, that's fine, I'll just make some binds to rebind the aliases and command bind so that I can easily use attack2 when I reopen the application without having to copy and paste the commands into console every single time. My solution was this:

(Using the I, O, and P keys to reset my binds)

bind i "command +combo" bind o "alias +combo 'bind mouse1 +attack2'" bind p "alias -combo 'unbind mouse1; -attack2; bind mouse1 +attack'"

The problem with this is the way console reads quotations. Since I need to bind O and P to create aliases for "combo", with the aliases needing quotations for the binds, two sets of quotation marks are required for the O and P binds. My solution was to use the apostrophe for the inner set of quotations, like how it would be written in a book, but this error was presented when I pressed and released the command key:

Unknown command: ' Unknown command: '

This means the console does not read the apostrophe as an inner set of quotation marks. When I try to simply use two sets of quotation marks, I get this error:

bind [command] : attach a command to a key

Is there any way I can modify my binds to fix this? Could the default bind for attack2 be reset to what it used to be? Does anyone know what is causing the application to forget the aliases I set? Any help is appreciated, thanks.

htownclyde avatar May 29 '16 16:05 htownclyde