Page 1 of 1
bindning buttons
Posted: Sat Dec 24, 2011 3:49 pm
by lunajamba
I learned yesterday that you could bind keys to make scripts. For example press f2 to buy weapons. I wonder if its possible to change 3 (switch to knife) to mousebutton 4/5. i have 2 addional buttons on my Razer deathadder which i like to use ingame. But as a newb in this scripting thing i'd like to hear what you guys know about this, if its even possible.
Re: bindning buttons
Posted: Sat Dec 24, 2011 5:27 pm
by N3bulouz
Uhm, can't you just change this in Settings/Controls ?
Re: bindning buttons
Posted: Sat Dec 24, 2011 6:48 pm
by lunajamba
not this im afraid, you can only change meny keys and movement;/
Re: bindning buttons
Posted: Sun Dec 25, 2011 3:31 pm
by fruitbowl 1
Interesting, I have a deathadder too so I'll try to check if there's a way to bind the side buttons.
Re: bindning buttons
Posted: Sun Dec 25, 2011 3:57 pm
by KickFoot
This is how my binds are when playing:
ScrollUp = Flashbang
Mouse5 = Grenade
4 = Smoke
ScrollDown = Jump
To bind your additional buttons, you simply type e.g:
bind "mouse4" "use weapon_flashbang"
bind "mouse5" "use weapon_smokegrenade"
or if you want to use them to buy...
bind "mouse4" "buy weapon_awp"
bind "mouse5" "buy weapon_m4a1"
I believe this is how they must look in your config file, but if you want to do it through console, just remove the quotation marks on mouse5 and mouse4 (like this: bind mouse4 "buy weapon_awp").
This is how you bind the knife: bind mouse4 "use weapon_knife"
Re: bindning buttons
Posted: Sun Dec 25, 2011 6:19 pm
by fruitbowl 1
Thanks kickfoot!
Re: bindning buttons
Posted: Sun Dec 25, 2011 6:44 pm
by lunajamba
thanks!:)