Upvote Upvoted 1 Downvote Downvoted
Bind customization
posted in Q/A Help
1
#1
0 Frags +

Hey guys i'm trying to figure out how to make it so my number pad (1-9 on the right side of keyboard) swaps classes, for example 1(End) being scout, 2(downarrow)being soldier and etc etc.
I'd appreciate if you could help me out with this, or simply link me to a page where this has been talked discussed already.

Hey guys i'm trying to figure out how to make it so my number pad (1-9 on the right side of keyboard) swaps classes, for example 1(End) being scout, 2(downarrow)being soldier and etc etc.
I'd appreciate if you could help me out with this, or simply link me to a page where this has been talked discussed already.
2
#2
10 Frags +

alias _scout "join_class scout"
alias _soldier "join_class soldier"
alias _pyro "join_class pyro"
alias _demoman "join_class demoman"
alias _heavy "join_class heavyweapons"
alias _engineer "join_class engineer"
alias _medic "join_class medic"
alias _sniper "join_class sniper"
alias _spy "join_class spy"

BIND "KP_END" "_scout"
BIND "KP_DOWNARROW" "_soldier"
BIND "KP_PGDN" "_pyro"
BIND "KP_LEFTARROW" "_demoman"
BIND "KP_5" "_heavy"
BIND "KP_RIGHTARROW" "_engineer"
BIND "KP_HOME" "_medic"
BIND "KP_UPARROW" "_sniper"
BIND "KP_PGUP" "_spy"

alias _scout "join_class scout"
alias _soldier "join_class soldier"
alias _pyro "join_class pyro"
alias _demoman "join_class demoman"
alias _heavy "join_class heavyweapons"
alias _engineer "join_class engineer"
alias _medic "join_class medic"
alias _sniper "join_class sniper"
alias _spy "join_class spy"


BIND "KP_END" "_scout"
BIND "KP_DOWNARROW" "_soldier"
BIND "KP_PGDN" "_pyro"
BIND "KP_LEFTARROW" "_demoman"
BIND "KP_5" "_heavy"
BIND "KP_RIGHTARROW" "_engineer"
BIND "KP_HOME" "_medic"
BIND "KP_UPARROW" "_sniper"
BIND "KP_PGUP" "_spy"
3
#3
1 Frags +

Is it possible to have it so you don't need to press , (change class key)?

What im trying to say is simply pressing these numbers inside spawn without pressing anything else, is it possible?

Is it possible to have it so you don't need to press , (change class key)?

What im trying to say is simply pressing these numbers inside spawn without pressing anything else, is it possible?
4
#4
-2 Frags +

Yes, but if you press any of those keys outside spawn you will suicide and respawn as the class you've chosen. I'm not sure if there is any way to keys bound to the numpad keys and them only. I know you could use a shift key and have it so when you hold like ctrl+1 you'd spawn as scout ect ect.

Yes, but if you press any of those keys outside spawn you will suicide and respawn as the class you've chosen. I'm not sure if there is any way to keys bound to the numpad keys and them only. I know you could use a shift key and have it so when you hold like ctrl+1 you'd spawn as scout ect ect.
5
#5
0 Frags +

Thanks guys, d0m3r it works good enough for me =)

Let this die

Thanks guys, d0m3r it works good enough for me =)

Let this die
6
#6
0 Frags +

Thanks for this, I've been wondering for a while, is it possible also to bind a key to a specific loadout from a class?

Thanks for this, I've been wondering for a while, is it possible also to bind a key to a specific loadout from a class?
7
#7
2 Frags +
BenroadsYes, but if you press any of those keys outside spawn you will suicide and respawn as the class you've chosen. I'm not sure if there is any way to keys bound to the numpad keys and them only. I know you could use a shift key and have it so when you hold like ctrl+1 you'd spawn as scout ect ect.

This is easily avoidable by going into Advanced Options and unchecking "Suicide after choosing a player class". A lot of people don't seem to have this unchecked (I even watched someone at this past ESEA LAN suicide because of it), it's pretty important if you want to avoid embarrassing yourself :).

The above binds works fine, I added an extra command for when I'm messing with class configs:

bind "KP_HOME" "join_class scout; exec scout"
bind "KP_UPARROW" "join_class soldier; exec soldier"
bind "KP_PGUP" "join_class pyro; exec pyro"
bind "KP_LEFTARROW" "join_class demoman; exec demoman"
bind "KP_5" "join_class heavyweapons; exec heavyweapons"
bind "KP_RIGHTARROW" "join_class engineer; exec engineer"
bind "KP_END" "join_class medic; exec medic"
bind "KP_DOWNARROW" "join_class sniper; exec sniper"
bind "KP_PGDN" "join_class spy; exec spy"

You can bind loadouts like this:

bind "F1" "load_itempreset 0";
bind "F2" "load_itempreset 1";
bind "F3" "load_itempreset 2";
bind "F4" "load_itempreset 3";

This only works for the class you are on however so I'm not sure if this answers your question completely.

[quote=Benroads]Yes, but if you press any of those keys outside spawn you will suicide and respawn as the class you've chosen. I'm not sure if there is any way to keys bound to the numpad keys and them only. I know you could use a shift key and have it so when you hold like ctrl+1 you'd spawn as scout ect ect.[/quote]

This is easily avoidable by going into Advanced Options and unchecking "Suicide after choosing a player class". A lot of people don't seem to have this unchecked (I even watched someone at this past ESEA LAN suicide because of it), it's pretty important if you want to avoid embarrassing yourself :).

The above binds works fine, I added an extra command for when I'm messing with class configs:

bind "KP_HOME" "join_class scout; exec scout"
bind "KP_UPARROW" "join_class soldier; exec soldier"
bind "KP_PGUP" "join_class pyro; exec pyro"
bind "KP_LEFTARROW" "join_class demoman; exec demoman"
bind "KP_5" "join_class heavyweapons; exec heavyweapons"
bind "KP_RIGHTARROW" "join_class engineer; exec engineer"
bind "KP_END" "join_class medic; exec medic"
bind "KP_DOWNARROW" "join_class sniper; exec sniper"
bind "KP_PGDN" "join_class spy; exec spy"

You can bind loadouts like this:

bind "F1" "load_itempreset 0";
bind "F2" "load_itempreset 1";
bind "F3" "load_itempreset 2";
bind "F4" "load_itempreset 3";

This only works for the class you are on however so I'm not sure if this answers your question completely.
8
#8
-3 Frags +

iirc if you don't have the suicide on change class enabled you need to actually die before your class will change, even in spawn area.

iirc if you don't have the suicide on change class enabled you need to actually die before your class will change, even in spawn area.
9
#9
3 Frags +
Benroadsiirc if you don't have the suicide on change class enabled you need to actually die before your class will change, even in spawn area.

nope

[quote=Benroads]iirc if you don't have the suicide on change class enabled you need to actually die before your class will change, even in spawn area.[/quote]
nope
10
#10
0 Frags +
RigelThis only works for the class you are on however so I'm not sure if this answers your question completely.

That's great thanks for your help.

-Q.

[quote=Rigel]
This only works for the class you are on however so I'm not sure if this answers your question completely.[/quote]

That's great thanks for your help.

-Q.
Please sign in through STEAM to post a comment.