Tutorial for binding keys

User avatar
commander fury
Former Server Admin
Posts: 2432
Joined: Tue Jan 08, 2013 12:37 pm
Location: France

Tutorial for binding keys

Post by commander fury »

Hi everyone.

Just a quick tutorial made by me about binding keys.I used it alot back in the time where i was playing on the RPs servers,but as the commands works the same I think it will work for DR/Cheat and build too.

Binding just requires a knowledge of the keys and the commands.

For starting,just enable the developper console.For the ones who don't know how,here's a quick and little tutorial about it :
Spoiler
Show
Go into your Escape(Pause) Menu, click Options, then click Keyboard. Under Keyboard, there will be an "Advanced Tab", click it and check the box that says "Enable Developer Console". Exit out and click apply and okay.
Once finished, you can open the console by pressing the Tilde(~) Key, which is underneath the Escape Key(ESC). You should get a big window at the right of your screen.
The text inside the window is automatic, and you can't control it.
-------------------------------------

Binding a key is one of the simplest thing you can do in the game : Believe me or not.Now let's find out what the console command bind does.

Code: Select all

bind <key> [command] : attach a command to a key
So now we've found out the syntax and how to use it, let's make our first bind.

Type this into the little textbox at the bottom:

Code: Select all

bind x "say !switch"
It should have worked. To test it, go into the DR server and press "X".It should work and show you the team menu.Now,you can say anything(Don't use it to spam),or bind anything you want.

Now,a little plus brought you by Stuntman : auto-switch binds :)
(Use different keys for each obviously, I just used x for demonstration purposes or something)

Code: Select all

for combine: bind x "say !switch; sm_vmenuselect 1"
for rebels: bind x "say !switch; sm_vmenuselect 2"
for spectate: bind x "say !switch; sm_vmenuselect 3"
**changes on puzzle maps**
sm_vmenuselect 1 will join a team and
sm_vmenuselect 2 will join spectate

If you want to unbind the key, type

Code: Select all

Unbind X
Into the console. You can bind it to any key you want, as long as it's a legitimate key. (Any letters, numbers, F1-F12, Command-Keys.)

Let's be honest,this is very very easy and even me as a "Noob-in-computer-things" can easily make one.
So now if you guys want some more advanced commands,just do like I did in this example;If I want to say GG and check the Top 10 at the same time,here's how I make the binds :

Code: Select all

Bind KEY "say !top10; say GG"
Admins can use binds too (/mute,/gag,/kick,/ban,/switch,etc...).Just follow this exemple (Or refer to the first or the second) :

Code: Select all

bind KEY "say !kick"
(Or any command you want.For the combo command+word,see the second exemple.

-------------------------------------

Here you go with this little and quick tutorial brought to you by Kory ;)
Now you'll only need to press a key to have the menus,instead of always typing the /switch,/models,/donate,/gifts,etc etc.
I may have forgotten a thing or two,if it's the case,post it below please.If you have any questions,ask me.Thanks to : Stuntman0007 for the auto-switch binds part.

~Kory
Last edited by commander fury on Thu Jan 17, 2013 1:43 am, edited 1 time in total.
Peter Brev

Re: Tutorial for binding keys

Post by Peter Brev »

Wrong forum, we all know.
Noob.
Only spam.
Delete this.
User avatar
po0ka
Former Server Admin
Posts: 713
Joined: Fri Oct 29, 2010 7:40 pm

Re: Tutorial for binding keys

Post by po0ka »

Not SDK Hammer, maybe moving.
But can be useful for some newbies.

That is kind of agressive reaction...
Keep in mind that what i say is not static, it is dynamic.
Years, months, weeks, and days after i say something, i can say the opposite.
Demon
Server Admin
Posts: 3161
Joined: Tue Nov 15, 2011 6:30 am

Re: Tutorial for binding keys

Post by Demon »

..... Rly? Everyone knows...
bind key command.
Really, you should think twice before posting.
Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: Tutorial for binding keys

Post by Nicdel »

You remind me of some guy on MPGH, he was the most hated person ever. The end.
Ingame: -[SaD]- Nico

Image
Peter Brev

Re: Tutorial for binding keys

Post by Peter Brev »

po0ka wrote:Not SDK Hammer, maybe moving.
But can be useful for some newbies.

That is kind of agressive reaction...
You're right.
Sorry for this reaction.
But I know who is hiding behind Kory name, and this make me angry.
User avatar
Xseba360
Server Admin
Posts: 1663
Joined: Sun Apr 11, 2010 12:26 pm
Location: Poland

Re: Tutorial for binding keys

Post by Xseba360 »

Cpt. Goomba wrote:
po0ka wrote:Not SDK Hammer, maybe moving.
But can be useful for some newbies.

That is kind of agressive reaction...
You're right.
Sorry for this reaction.
But I know who is hiding behind Kory name, and this make me angry.
oh god... here it starts agaaain...
@Kory - this is... Extremely useless... Who the fuck doesn't know how to bind a ke... Oh right, deathrun... At the first when i saw this title I almost shat my pants. Honestly!
@Pooka - Good idea, 100% right.
@Ant - Deathrun Tutorials subforum?
@Goomba - I know that feel bro...
User avatar
myback
Server Admin
Posts: 1051
Joined: Sat Mar 26, 2011 6:42 am
Location: United States

Re: Tutorial for binding keys

Post by myback »

Cpt. Goomba wrote: But I know who is hiding behind Kory name, and this make me angry.
I think we all know .....
Image
Peter B.: half counter fortress team portal life 2
User avatar
po0ka
Former Server Admin
Posts: 713
Joined: Fri Oct 29, 2010 7:40 pm

Re: Tutorial for binding keys

Post by po0ka »

Lets say the name and make the people talk louder and all.
Fury?

Reminded me of harry potter.
Image
Keep in mind that what i say is not static, it is dynamic.
Years, months, weeks, and days after i say something, i can say the opposite.
User avatar
commander fury
Former Server Admin
Posts: 2432
Joined: Tue Jan 08, 2013 12:37 pm
Location: France

Re: Tutorial for binding keys

Post by commander fury »

Ant will decide on what to do.I am sorry,but as there wasn't a sub forum for the Deathrun's tutorials,I posted there.It was the closer.
I just posted this in the goal to help newbies,of course I know that experienced players perfectly know how to bind.
Otherwise i don't see why you call this spam or noob...Well anyways...I don't want to start any shitstorm here.
And of course,everyone knows who I am,but i don't want to talk about this tho,it will make people angrier.

~Sincerely,Kory.
Last edited by commander fury on Wed Jan 16, 2013 8:15 am, edited 1 time in total.
User avatar
myback
Server Admin
Posts: 1051
Joined: Sat Mar 26, 2011 6:42 am
Location: United States

Re: Tutorial for binding keys

Post by myback »

Cpt. Goomba wrote:Wrong forum, we all know.
Noob.
Only spam.
Delete this.
Damn, this is like a catalyst for shitstorms.

This is a decent tutorial for people on level one for developing and straightforward just for binding keys, can see why people are getting mad tho
At least ur trying XD
Image
Peter B.: half counter fortress team portal life 2
Peter Brev

Re: Tutorial for binding keys

Post by Peter Brev »

myback wrote:
Cpt. Goomba wrote:Wrong forum, we all know.
Noob.
Only spam.
Delete this.
Damn, this is like a catalyst for shitstorms.

This is a decent tutorial for people on level one for developing and straightforward just for binding keys, can see why people are getting mad tho
At least ur trying XD
I wouldn't post that if kory wasn't fury.
User avatar
Stuntman0007
750+ Posts
750+ Posts
Posts: 752
Joined: Thu Jul 14, 2011 8:24 pm
Location: Virginia Tech

Re: Tutorial for binding keys

Post by Stuntman0007 »

Should it be moved? Most definitely (random maybe?)

Need to go "OH MAH GAWD WE KNOW HOW TO DO THIS SO THIS IS SHIT CUZ IT DOESN'T APPLY TO ME ER MAH GERD"

No
Kory wrote:

Code: Select all

bind x "say !switch"
Auto-switch binds :)
(Use different keys for each obviously, i just used x for demonstration purposes or something)

Code: Select all

for combine: bind x "say !switch; sm_vmenuselect 1"
for rebels: bind x "say !switch; sm_vmenuselect 2"
for spectate: bind x "say !switch; sm_vmenuselect 3"
**changes on puzzle maps**
sm_vmenuselect 1 will join a team and
sm_vmenuselect 2 will join spectate
Mew I'm a bunny!
Image
User avatar
commander fury
Former Server Admin
Posts: 2432
Joined: Tue Jan 08, 2013 12:37 pm
Location: France

Re: Tutorial for binding keys

Post by commander fury »

Thanks you.I'll add this.
Cpt.Travis
Former Server Admin
Posts: 714
Joined: Mon Oct 03, 2011 2:07 am

Re: Tutorial for binding keys

Post by Cpt.Travis »

Not every1 knows how to bind keys so stop being retarded and disrespectful. If you know how to bind keys then you don't have to read this, but for the people who doesn't know this will be helpful for them.