bindning buttons
-
- Server Administrator
- Posts: 66
- Joined: Fri Dec 23, 2011 1:18 am
- Steam Username: lunajamba449
- Location: Sweden
bindning buttons
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.
// jackluna
- fruitbowl 1
- Server Administrator
- Posts: 436
- Joined: Sun Mar 21, 2010 2:23 pm
- Steam Username: joniz_93
Re: bindning buttons
Interesting, I have a deathadder too so I'll try to check if there's a way to bind the side buttons.
Asus M4A89GTD Pro | AMD Phenom II X4 955 Black Edition @ 3.2GHz | ASUS EAH5770 + Sapphire Vapor-X HD5770 in CF | Corsair XMS3 Venegeance 2x4GB CL9 | Western Digital Caviar Black 750GB |OCZ ModXStream Pro 600W | Fractal Design Define R4
-
- Server Administrator
- Posts: 538
- Joined: Mon Jul 27, 2009 11:11 pm
- Location: Hermosa Suecia
- Contact:
Re: bindning buttons
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"
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"
- fruitbowl 1
- Server Administrator
- Posts: 436
- Joined: Sun Mar 21, 2010 2:23 pm
- Steam Username: joniz_93
Re: bindning buttons
Thanks kickfoot!
Asus M4A89GTD Pro | AMD Phenom II X4 955 Black Edition @ 3.2GHz | ASUS EAH5770 + Sapphire Vapor-X HD5770 in CF | Corsair XMS3 Venegeance 2x4GB CL9 | Western Digital Caviar Black 750GB |OCZ ModXStream Pro 600W | Fractal Design Define R4