Loadout switcher

A Fast loadout changer for the unlocks in tf2 ( medic pyro heavy )

In medic.cfg:
alias "main1"             "equip 5 0 0; bind F6 main2" //Equip Needlegun
alias "main2"             "equip 5 0 1; bind F6 main1" //Equip Blutsauger
alias "alt1"              "equip 5 1 0; bind F7 alt2"  //Equip Medigun
alias "alt2"              "equip 5 1 2; bind F7 alt1"  //Equip Kritzkrieg
alias "mel1"              "equip 5 2 0; bind F8 mel2"  //Equip Bonesaw
alias "mel2"              "equip 5 2 3; bind F8 mel1"  //Equip Ubersaw


In pyro.cfg:
alias "main1"             "equip 7 0 0; bind F6 main2" //Equip Flame Thrower
alias "main2"             "equip 7 0 5; bind F6 main1" //Equip BackBurner
alias "alt1"              "equip 7 1 0; bind F7 alt2"  //Equip Shotgun
alias "alt2"              "equip 7 1 4; bind F7 alt1"  //Equip Flare Gun
alias "mel1"              "equip 7 2 0; bind F8 mel2"  //Equip Fire Axe
alias "mel2"              "equip 7 2 6; bind F8 mel1"  //Equip Axting


In heavyweapons.cfg:
alias "main1"             "equip 6 0 0; bind F6 main2" //Equip Sasha
alias "main2"             "equip 6 0 8; bind F6 main1" //Equip Natascha
alias "alt1"              "equip 6 1 0; bind F7 alt2"  //Equip Shotgun
alias "alt2"              "equip 6 1 7; bind F7 alt1"  //Equip Sandvich
alias "mel1"              "equip 6 2 0; bind F8 mel2"  //Equip Standard gloves
alias "mel2"              "equip 6 2 9; bind F8 mel1"  //Equip K.G.B


And finally in autoexec.cfg (note: if you don't have this file, just open notepad put this in and then save as "autoexec.cfg" in "\tf\cfg"):
bind F6 "main2"
bind F7 "alt2"
bind F8 "mel2"

Pretty self explanatory. Change the binds at the end (in autoexec.cfg) if you want to use different buttons obviously. And the initial thing to bind to if you use the unlocks as normal (i.e. mel2->mel1 if you use the unlock melee weapon in your standard loadout). (this is particularly helpful for last minute changes in arena mode, where you change class and realise you have the wrong loadout and the round is about to start).

Hope this is useful.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Shifty54's Levels
    • P1: Beggar
      Points: 490
    • A6: Elder
      Account Age: 7 years
    5 years ago:

    Unfortunately with the latest valve patch this script no longer functions as the "equip" command has been removed. :(

    Rollin Along'
  • Joshua1320's Levels
    • A5: Veteran
      Account Age: 6 years
    5 years ago:

    This script is most probably broken, valve just updated tf2 and i read this in the forums: Removed equip console command. (Allowed to switch load out items without entering the menu.)

    So most probably we can't use this script anymore.

    Bananite
  • necrosect's Levels
    • A5: Veteran
      Account Age: 6 years
    5 years ago:
    Posted by Joshua1320 Also wanted to ask, will this be updated once the scout update is out?

    Yes you can expect this to be updated as soon as the scout update comes out and I work out the weapon values - shouldnt be too hard :) I plan on updating this to be a bit more advanced when valve do the update that remotely stores your default loadout - well depending on how they implement it I may have a way of switching your current loadout rather than just having to choose a default for the variable and toggle that -you'll see what I mean if I end up being able to do it :)

    but basically expect this to be kept up to date as I use it as well :)

    playing tf2 til my eyes bleed
  • Joshua1320's Levels
    • A5: Veteran
      Account Age: 6 years
    5 years ago:

    Also wanted to ask, will this be updated once the scout update is out?

    Bananite
  • Joshua1320's Levels
    • A5: Veteran
      Account Age: 6 years
    5 years ago:

    Lol i realised today how even more useful this script is, if you are having connection probs and the loadout menu says that it can't connect to steam and you can't switch the stock weps for the unlockables, you CAN use this script to change the weapons in offline mode or when loadout menu has no connection!

    Bananite
  • necrosect's Levels
    • A5: Veteran
      Account Age: 6 years
    6 years ago:
    Posted by Mondak
    Posted by necrosect Thanks for using this. Maybe I didn't explain it, but this is designed to be used to swtich from your default set up when you quickly need to use the other one - not to change your default set up. To change your default set up you need to use the menu. This is just used for on the fly changing :)
    Ah - that makes sense. Let me try it again. When I implemented it, I had just deleted my config.cfg file to make a new one. I bet the defaults were in there. I'll try changing them in the menu and then using your script. Thanks a million for the quick reply and your expertise. Makes the game just that much more fun to have folks like you around.

    Just so you know, in config.cfg you need the following vars:

    item_medic_weapon_primary item_medic_weapon_secondary item_medic_weapon_melee item_pyro_weapon_primary item_pyro_weapon_secondary item_pyro_weapon_melee item_heavy_weapon_primary item_heavy_weapon_secondary item_heavy_weapon_melee

    For the default loadout :). I can't remember off the top of my head which numbers you need for these, as I'm not on my comp with tf2 on it. But if you want to add me on steam (yf.necrosect) feel free - as I can answer a bit quicker on there. And thanks.

    playing tf2 til my eyes bleed
  • Mondak's Levels
    • A5: Veteran
      Account Age: 6 years
    6 years ago:
    Posted by necrosect Thanks for using this. Maybe I didn't explain it, but this is designed to be used to swtich from your default set up when you quickly need to use the other one - not to change your default set up. To change your default set up you need to use the menu. This is just used for on the fly changing :)

    Ah - that makes sense. Let me try it again. When I implemented it, I had just deleted my config.cfg file to make a new one. I bet the defaults were in there. I'll try changing them in the menu and then using your script. Thanks a million for the quick reply and your expertise. Makes the game just that much more fun to have folks like you around.

    Bananite
  • necrosect's Levels
    • A5: Veteran
      Account Age: 6 years
    6 years ago:
    Posted by Mondak I can't seem to make this thing sing for what I want to do. I read what you said about switching the initial thing to bind to and can't seem to make it work. No matter what I do, I initially spawn (or when I switch classes) with all of the original weapons. Sometimes you forget and run out of spawn without setting them up again. Would it be possible to provide an example that did the following: Spawn the Pyro with the Airblast, Flare Gun and AxeTinguisher and the Medic with the Blutsauger, Kritz and Ubersaw? Thanks either way for coming up with this.

    Thanks for using this. Maybe I didn't explain it, but this is designed to be used to swtich from your default set up when you quickly need to use the other one - not to change your default set up. To change your default set up you need to use the menu. This is just used for on the fly changing :)

    playing tf2 til my eyes bleed
  • Mondak's Levels
    • A5: Veteran
      Account Age: 6 years
    6 years ago:

    I can't seem to make this thing sing for what I want to do. I read what you said about switching the initial thing to bind to and can't seem to make it work. No matter what I do, I initially spawn (or when I switch classes) with all of the original weapons. Sometimes you forget and run out of spawn without setting them up again.

    Would it be possible to provide an example that did the following: Spawn the Pyro with the Airblast, Flare Gun and AxeTinguisher and the Medic with the Blutsauger, Kritz and Ubersaw? Thanks either way for coming up with this.

    Bananite
  • necrosect's Levels
    • A5: Veteran
      Account Age: 6 years
    6 years ago:
    Posted by Joshua1320 I'm new to TF2 scripts, and wanted to know if i can bind to execute a certain cfg i.e. bind p "exec pyro.cfg"

    Yeah you can. You'd do exactly that, just make sure the cfg you want executed is in tf/cfg folder :)

    playing tf2 til my eyes bleed

Credits

Key Authors
necrosect
Unknown

Submitter

necrosect's Levels
  • A5: Veteran
    Account Age: 6 years

necrosect (Creator/Co-creator)

Rating

9.50/10
Based off 3 rating(s)

Stats

Post Count
17
ViewCount
9,946
Date Added
6 years ago
Date Modified
6 years ago

License

N/A

Share

Code to use:

More embeddable images

Bookmark and Share