Upvote Upvoted 7 Downvote Downvoted
Class change bind
posted in Customization
1
#1
4 Frags +

Can anyone help me make a bind that changes class to whatever and then back to the class I want, kinda like a real fast resup or a one button forward spawn?

This is what im thinking bind "x" "changeclass; pyro; changeclass; soldier" that but actually working

Can anyone help me make a bind that changes class to whatever and then back to the class I want, kinda like a real fast resup or a one button forward spawn?


This is what im thinking bind "x" "changeclass; pyro; changeclass; soldier" that but actually working
2
#2
-9 Frags +

bind "x" "joinclass <pyro>"

bind "x" "joinclass <pyro>"
3
#3
8 Frags +

shud wurk

alias classswitch "class1"
alias class1 "join_class pyro; alias classswitch class2"
alias class2 "join_class soldier; alias classswitch class1"
bind "[key]" "classswitch"

Alternatively, you can bind your keypad (if you have one and not in use for other binds) to different classes.

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

shud wurk

alias classswitch "class1"
alias class1 "join_class pyro; alias classswitch class2"
alias class2 "join_class soldier; alias classswitch class1"
bind "[key]" "classswitch"

Alternatively, you can bind your keypad (if you have one and not in use for other binds) to different classes.

bind "KP_END" "join_class scout"
bind "KP_DOWNARROW" "join_class soldier"
bind "KP_PGDN" "join_class pyro"
bind "KP_LEFTARROW" "join_class demoman"
bind "KP_5" "join_class heavyweapons"
bind "KP_RIGHTARROW" "join_class engineer"
bind "KP_HOME" "join_class medic"
bind "KP_UPARROW" "join_class sniper"
bind "KP_PGUP" "join_class spy"
4
#4
8 Frags +

alias +spawn "join_class pyro"
alias -spawn "join_class soldier"
bind f5 +spawn

you have to hold it down for like .5 sec

alias +spawn "join_class pyro"
alias -spawn "join_class soldier"
bind f5 +spawn

you have to hold it down for like .5 sec
5
#5
1 Frags +

I use a bind which I believe is from tf2mate where you hold down shift + numbers 1-9 to choose a class. I also have a loadout bind so I can switch loadouts (in cases like uber/kritz or forward spawning).

Shift + bind:
alias +mate_joinclass "bind 1 mate_scout; bind 2 mate_soldier; bind 3 mate_pyro; bind 4 mate_demoman; bind 5 mate_heavy; bind 6 mate_engineer; bind 7 mate_medic; bind 8 mate_sniper; bind 9 mate_spy"

alias -mate_joinclass "bind 1 "mate_slot1"; bind 2 "mate_slot2"; bind 3 "mate_slot3"; bind 4 "mate_slot4"; bind 5 "mate_slot5"; bind 6 "mate_slot6"; bind 7 "mate_slot7"; bind 8 "mate_slot8"; bind 9 "mate_slot9""

bind "shift" "+mate_joinclass"
bind "rshift" "+mate_joinclass"

Loadout switcher script:
alias +loadoutA load_itempreset 0
alias +loadoutB load_itempreset 1
alias +loadoutC load_itempreset 2
alias +loadoutD load_itempreset 3
alias -loadoutA slot2
alias -loadoutB slot2
alias -loadoutC slot2
alias -loadoutD slot2

bind "F1" "+loadoutA"
bind "F2" "+loadoutB"
bind "F3" "+loadoutC"
bind "F4" "+loadoutD"

I use a bind which I believe is from tf2mate where you hold down shift + numbers 1-9 to choose a class. I also have a loadout bind so I can switch loadouts (in cases like uber/kritz or forward spawning).

Shift + bind:
alias +mate_joinclass "bind 1 mate_scout; bind 2 mate_soldier; bind 3 mate_pyro; bind 4 mate_demoman; bind 5 mate_heavy; bind 6 mate_engineer; bind 7 mate_medic; bind 8 mate_sniper; bind 9 mate_spy"

alias -mate_joinclass "bind 1 "mate_slot1"; bind 2 "mate_slot2"; bind 3 "mate_slot3"; bind 4 "mate_slot4"; bind 5 "mate_slot5"; bind 6 "mate_slot6"; bind 7 "mate_slot7"; bind 8 "mate_slot8"; bind 9 "mate_slot9""

bind "shift" "+mate_joinclass"
bind "rshift" "+mate_joinclass"

Loadout switcher script:
alias +loadoutA load_itempreset 0
alias +loadoutB load_itempreset 1
alias +loadoutC load_itempreset 2
alias +loadoutD load_itempreset 3
alias -loadoutA slot2
alias -loadoutB slot2
alias -loadoutC slot2
alias -loadoutD slot2

bind "F1" "+loadoutA"
bind "F2" "+loadoutB"
bind "F3" "+loadoutC"
bind "F4" "+loadoutD"
6
#6
2 Frags +

This is probably not really what you want, but this script lets you preserve uber % while changing spawns (technically also lets you change between two loadouts; if you press it twice it should give you a quick resup with the loadout you had previously, along with any spawn changing that would apply):

alias "movespawn_first" "load_itempreset 1; alias "movespawn_third" "movespawn_second""
alias "movespawn_second" "load_itempreset 0; alias "movespawn_third" "movespawn_first""
alias "movespawn_third" "movespawn_first"
bind "f2" "movespawn_third"

To preserve uber, you have to have the same medigun in loadout A and loadout B, with at least one of the other weapon slots different, and ’automatically respawn after loadout changes’ checked in advanced options.

(Taken from Phoenix's Medic.cfg)

This is probably not really what you want, but this script lets you preserve uber % while changing spawns (technically also lets you change between two loadouts; if you press it twice it should give you a quick resup with the loadout you had previously, along with any spawn changing that would apply):

alias "movespawn_first" "load_itempreset 1; alias "movespawn_third" "movespawn_second""
alias "movespawn_second" "load_itempreset 0; alias "movespawn_third" "movespawn_first""
alias "movespawn_third" "movespawn_first"
bind "f2" "movespawn_third"

To preserve uber, you have to have the same medigun in loadout A and loadout B, with at least one of the other weapon slots different, and ’automatically respawn after loadout changes’ checked in advanced options.

(Taken from Phoenix's Medic.cfg)
7
#7
0 Frags +
ControlopeTo preserve uber, you have to have the same medigun in loadout A and loadout B, with at least one of the other weapon slots different, and ’automatically respawn after loadout changes’ checked in advanced options.

I'm pretty sure this isn't allowed in leagues.

Also Dunderbro be aware when making a bind for this if you spawn to a class one of your teammates also forwardspawning plays (for example, you and a scout on your team want to take forwardspawn after your team caps middle and your script allows you to randomly go scout) you can mess up that person from switching back to their normal class. Kind of confusing but basically you should avoid changing to scout/demoman in a forwardspawn script and go pyro or spy like other users have posted so you don't screw anyone up.

[quote=Controlope]
To preserve uber, you have to have the same medigun in loadout A and loadout B, with at least one of the other weapon slots different, and ’automatically respawn after loadout changes’ checked in advanced options.
[/quote]

I'm pretty sure this isn't allowed in leagues.

Also Dunderbro be aware when making a bind for this if you spawn to a class one of your teammates also forwardspawning plays (for example, you and a scout on your team want to take forwardspawn after your team caps middle and your script allows you to randomly go scout) you can mess up that person from switching back to their normal class. Kind of confusing but basically you should avoid changing to scout/demoman in a forwardspawn script and go pyro or spy like other users have posted so you don't screw anyone up.
8
#8
-2 Frags +

I have my forward spawns set up to link to classes not normally used

Scout -> Pyro -> Scout
Soldier -> Heavy -> Soldier
Demo -> Engie -> Demo

Medic I normally use the loadout switching thing so I can hold onto whatever uber I had.

I have my forward spawns set up to link to classes not normally used

Scout -> Pyro -> Scout
Soldier -> Heavy -> Soldier
Demo -> Engie -> Demo

Medic I normally use the loadout switching thing so I can hold onto whatever uber I had.
9
#9
0 Frags +

Dunder is European, so there aren't class limits in the config and it's okay to retain uber while backspawning (fairly sure this is also allowed in ESEA, as there's no trick to it). I use this where A and B have medigun and different hats, and C and D have kritz and different hats:

bind u "load_itempreset 1;load_itempreset 0; say_team switching to UBER"
bind i "load_itempreset 2;load_itempreset 3; say_team switching to KRITZKRIEG"

Dunder is European, so there aren't class limits in the config and it's okay to retain uber while backspawning (fairly sure this is also allowed in ESEA, as there's no trick to it). I use this where A and B have medigun and different hats, and C and D have kritz and different hats:

bind u "load_itempreset 1;load_itempreset 0; say_team switching to UBER"
bind i "load_itempreset 2;load_itempreset 3; say_team switching to KRITZKRIEG"
10
#10
0 Frags +

I have this in my scout config:

bind DOWNARROW "join_class scout"
bind LEFTARROW "join_class pyro"
bind RIGHTARROW "join_class sniper"
bind UPARROW "join_class heavyweapons"

and this in my soldier config:

bind DOWNARROW "join_class soldier"
bind LEFTARROW "join_class pyro"
bind RIGHTARROW "join_class sniper"
bind UPARROW "join_class heavyweapons"

It allows really quick switching from a class to an offclass, and then back to the original class.

I have this in my scout config:

bind DOWNARROW "join_class scout"
bind LEFTARROW "join_class pyro"
bind RIGHTARROW "join_class sniper"
bind UPARROW "join_class heavyweapons"

and this in my soldier config:

bind DOWNARROW "join_class soldier"
bind LEFTARROW "join_class pyro"
bind RIGHTARROW "join_class sniper"
bind UPARROW "join_class heavyweapons"

It allows really quick switching from a class to an offclass, and then back to the original class.
11
#11
0 Frags +
fraacDunder is European, so there aren't class limits in the config and it's okay to retain uber while backspawning (fairly sure this is also allowed in ESEA, as there's no trick to it). I use this where A and B have medigun and different hats, and C and D have kritz and different hats:

bind u "load_itempreset 1;load_itempreset 0; say_team switching to UBER"
bind i "load_itempreset 2;load_itempreset 3; say_team switching to KRITZKRIEG"

Exact same setup as mine, down the the keys. However I also change primaries with the loadout shit, Overdose on A and C Crossbow on B and D

[quote=fraac]Dunder is European, so there aren't class limits in the config and it's okay to retain uber while backspawning (fairly sure this is also allowed in ESEA, as there's no trick to it). I use this where A and B have medigun and different hats, and C and D have kritz and different hats:

bind u "load_itempreset 1;load_itempreset 0; say_team switching to UBER"
bind i "load_itempreset 2;load_itempreset 3; say_team switching to KRITZKRIEG"[/quote]

Exact same setup as mine, down the the keys. However I also change primaries with the loadout shit, Overdose on A and C Crossbow on B and D
12
#12
0 Frags +
BenroadsExact same setup as mine, down the the keys. However I also change primaries with the loadout shit, Overdose on A and C Crossbow on B and D

Me too. :)

[quote=Benroads]Exact same setup as mine, down the the keys. However I also change primaries with the loadout shit, Overdose on A and C Crossbow on B and D[/quote]

Me too. :)
13
#13
4 Frags +

// class joiner
alias +joinclass "bind 1 scout; bind 2 soldier; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engineer; bind 7 medic; bind 8 sniper; bind 9 spy"
//binds each class to a number, this is done in the same order that they appear in the class menu

alias "-joinclass" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9"
//
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 "shift" "+joinclass"

//

this is what i use (shift+1 scout, shift+2 solly, shift+3 pyro, etc)

// class joiner
alias +joinclass "bind 1 scout; bind 2 soldier; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engineer; bind 7 medic; bind 8 sniper; bind 9 spy"
//binds each class to a number, this is done in the same order that they appear in the class menu

alias "-joinclass" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9"
//
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 "shift" "+joinclass"

//

this is what i use (shift+1 scout, shift+2 solly, shift+3 pyro, etc)
14
#14
1 Frags +

Sorry for the necro, but this is the relevant thread for what I want.

I've got a loadout switch bind, but I'd like to not have to guess at the speed of the itemservers when I hit the bind. It'd be much better if I could just instantly switch from whatever I'm on, to pyro, and then back to my class. I tried what #3 suggested but all it does is swap me to pyro, and then I have to hit my bind a 2nd time to switch back. That winds up being slower than just using the loadout bind. I don't really understand why it doesn't work (because, to my limited knowledge, it should), and I don't really know what else to try.

Sorry for the necro, but this is the relevant thread for what I want.

I've got a loadout switch bind, but I'd like to not have to guess at the speed of the itemservers when I hit the bind. It'd be much better if I could just instantly switch from whatever I'm on, to pyro, and then back to my class. I tried what #3 suggested but all it does is swap me to pyro, and then I have to hit my bind a 2nd time to switch back. That winds up being slower than just using the loadout bind. I don't really understand why it doesn't work (because, to my limited knowledge, it should), and I don't really know what else to try.
15
#15
0 Frags +

morris the reason is because there's like a tiny delay between switching classes like that

so you have to hold the button down for like half a second before letting go will actually switch you back

morris the reason is because there's like a tiny delay between switching classes like that

so you have to hold the button down for like half a second before letting go will actually switch you back
16
#16
0 Frags +

I've tried that, it's not working.

I've tried that, it's not working.
17
#17
0 Frags +

oh woops, i was using grapes post in #4, haven't tried #3

edit: ok #3 is supposed to do that, you press it twice to switch to another class and back

because of the delay there's nothing you can do about it

the closest you'll get to a 1 press is grapes method but you'll still have to accoutn for the delay by holding the key down a tad longer than usual

also the disadvantage to this sort of script is that if you mistime it and hit it too early outside of spawn you've basically fucked yourself while a class change is on cool down

oh woops, i was using grapes post in #4, haven't tried #3

edit: ok #3 is supposed to do that, you press it twice to switch to another class and back

because of the delay there's nothing you can do about it

the closest you'll get to a 1 press is grapes method but you'll still have to accoutn for the delay by holding the key down a tad longer than usual

also the disadvantage to this sort of script is that if you mistime it and hit it too early outside of spawn you've basically fucked yourself while a class change is on cool down
Please sign in through STEAM to post a comment.