Jump to content

Binding keys


bullseyekc

Recommended Posts

GC Coalition Member

alias "healthkit" "say !buy; menuselect 3; menuselect 1; menuselect 1;"

bind "kp_plus" "healthkit"

 

buys a heatlh kit with a keypress of the + on the number pad and

 

alias "fullhealth" "say !buy; menuselect 3; menuselect 5; menuselect 1;"

bind "kp_enter" "fullhealth"

 

buys a full heal with a press of the number pad "enter"

 

And

bind "ins" "sm_buy"

opens the buy menu with the press of the ins key

 

Make a txt file and name it autoexec

and place it in your L4D2 config folder

and you should be good to go

Hope this helps

Link to comment
Share on other sites

alias "healthkit" "say !buy; menuselect 3; menuselect 1; menuselect 1;"

bind "kp_plus" "healthkit"

 

buys a heatlh kit with a keypress of the + on the number pad and

 

alias "fullhealth" "say !buy; menuselect 3; menuselect 5; menuselect 1;"

bind "kp_enter" "fullhealth"

 

eww, you put the whole alias thing in? why not direct bind with the menuselects?

Link to comment
Share on other sites

GC Coalition Member

alias "healthkit" "say !buy; menuselect 3; menuselect 1; menuselect 1;"

bind "kp_plus" "healthkit"

 

buys a heatlh kit with a keypress of the + on the number pad and

 

alias "fullhealth" "say !buy; menuselect 3; menuselect 5; menuselect 1;"

bind "kp_enter" "fullhealth"

 

eww, you put the whole alias thing in? why not direct bind with the menuselects?

 

eww??

 

I have had these binds for 2 years now. I dont know if the other method exsisted back then and

they work just fine for me

Edited by Mercman
Link to comment
Share on other sites

I think he's saying that it's redundant.

 

If you did:

 

bind kp_plus "say !buy; menuselect 3; menuselect 1; menuselect 1"

 

It would do the same thing.

 

Woah woah woah, that was possible? Would it be possible to then make a key that buys an M60 w/ explosive ammo? It's like the ultimate tank slayer, and can be a pain to buy them manually while running from a tank or three.

Link to comment
Share on other sites

GC Coalition Member

I think he's saying that it's redundant.

 

If you did:

 

bind kp_plus "say !buy; menuselect 3; menuselect 1; menuselect 1"

 

It would do the same thing.

 

Thx

I see that now how that can be done.

When I was learned how to bind keys thats how he learned me. Before I had to type every command and usally died while trying to

Link to comment
Share on other sites

GC Coalition Member

 

 

Woah woah woah, that was possible? Would it be possible to then make a key that buys an M60 w/ explosive ammo? It's like the ultimate tank slayer, and can be a pain to buy them manually while running from a tank or three.

 

I dont think so but i could be wrong

You can buy an m60 with expolsive ammo with 2 keypresses.

Edited by Mercman
Link to comment
Share on other sites

Woah woah woah, that was possible? Would it be possible to then make a key that buys an M60 w/ explosive ammo? It's like the ultimate tank slayer, and can be a pain to buy them manually while running from a tank or three.

 

I dont think so but i could be wrong

You can buy an m60 with expolsive ammo with 2 keypresses.

That's one more keypress than I'd like. I'm a man of simple pleasures, like one single button.

Link to comment
Share on other sites

Woah woah woah, that was possible? Would it be possible to then make a key that buys an M60 w/ explosive ammo? It's like the ultimate tank slayer, and can be a pain to buy them manually while running from a tank or three.

 

I dont think so but i could be wrong

You can buy an m60 with expolsive ammo with 2 keypresses.

That's one more keypress than I'd like. I'm a man of simple pleasures, like one single button.

http://www.youtube.com/watch?v=81bJ73tgZk0

  • Like 1
Link to comment
Share on other sites

I'll give you my Aarkovi's firstborn for the exact bind code you used in the console

 

I was gonna type it out.... but I really do NOT want any child with aarkovi's dna anywhere near me

 

The firstborn thing was optional. Now tell meeeeeeeeeeeh.

Link to comment
Share on other sites

GC Coalition Member

Mercman, do you have a list of how source names other keys (like kp_plus, etc.)? I don't have that info and clearly it's very useful.

 

 

bind "KP_END" "laser"

bind "KP_DOWNARROW" "pipe"

bind "KP_PGDN" "molatov"

bind "KP_RIGHTARROW" "ADREN"

bind "KP_HOME" "survivorperks"

bind "KP_UPARROW" "ammo"

bind "KP_PGUP" "pills"

bind "KP_MINUS" "defib"

bind "KP_PLUS" "healthkit"

bind "KP_ENTER" "fullhealth"

bind "KP_DEL" "sm_csm"

These commands are from the config file in L4D2

 

 

I couldnt figure out how to use the keyboard numbers

hope that is helpful

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...