question about binds


(Letzten) #1

Hello
I was wondering if it was possible to bind multiple actions on one key, like an alias in hl engine for example.

I’ld like to use mouse2 to toggle ironsight and set ui_showgun to 1, and when i press mouse2 again, it sets ui_showgun back to 0.

Tell me if it’s possible. Thank you.


(neg) #2

not possible to use binds like ‘_altattack’ with other binds, any bind thats preceded by a _ cannot be used with another bind


(Kurnuttaja) #3

Id like to bind the crouch and slide into different buttons, so I could crouch with ctrl and slide with F (I use E as interact). F crouching sux.


(Colezy) #4

Another similar problem is with the special action buttons. Why does it require 2 button presses to do all of these actions?
Often in a fire-fight I see a perfect opportunity to throw a Molotov or sticky grenade etc but instead of just throwing it I have to press 2 buttons, select then throw. Also, if I want to throw a normal grenade at someone and I didn’t realise I have EMP selected (for example) I will not get the desired effect :S

Please allow a mapping option that allows me to select and use each ability with 1 keypress


(jegis) #5

Add these to your autoexec.

bind “j” “toggle ui_showgun; addchatline ‘ui_showgun toggled’”

Replace j with what key you want. Addchatline just says that it’s been toggled in the chat area.

You can alias stuff by doing seta nameOfAlias and then execute with vstr so vstr nameOfAlias

An example would be

seta “test1” “addchatline ‘this is a test’”
bind j “test1”
bind k “test1”

Both j and k would do the same thing, which is say this is a test.