THE GAME CUSTOMIZATION NETWORK: FPSBANANA | RTSBANANA | RPGBANANA SUBSCRIBE
 
Search
  
Heavy Loadout Switcher
Added by...
UserError
Author(s): UserError
Category: TF2 > Weapon Scripts
Notes/Usage Instructions:

This is an easier and faster method of switching to and from unlocked weapons.

*important* I have not earned all of the unlocks yet to verify that the aliases work. If they don't, please let me know and I'll attempt to fix it.

INSTALLATION:
Locate (or create) the file "heavyweapons.cfg" located in "\steam\steamapps\account\team fortress 2\tf\cfg\". Insert the script code (see below) into the file and save it.

USAGE:
Press the F1, F2, or F3 key to toggle your primary, secondary, or melee weapons respectively. You must be inside a respawn room for the weapon to change immediately, and must have earned the unlock.

NOTES:
If you're already equipped with an unlock when first spawning as heavy, and attempt to switch to a standard weapon, you will have to press the key twice to do so. This is because the first key press will attempt to switch to the unlock, which you may already have equipped. The second key press will then switch back to the standard weapon.

ADVANCED INSTALLATION:
At the bottom of the script are 6 commented lines of code, grouped by weapon slot. Uncommenting any of them will make you start with a specific weapon, instead of what you had equipped the last time you played heavy.
Script Code:
//Heavy Loadout Switcher v1.0
bind "f1" "los_toggle1"
bind "f2" "los_toggle2"
bind "f3" "los_toggle3"

alias "los_toggle1" "los_unlock1_display"
alias "los_toggle2" "los_unlock2_display"
alias "los_toggle3" "los_unlock3_display"

alias "los_standard1" "equip 6 0 0; alias los_toggle1 los_unlock1_display"
alias "los_standard2" "equip 6 1 0; alias los_toggle2 los_unlock2_display" 
alias "los_standard3" "equip 6 2 0; alias los_toggle3 los_unlock3_display"

alias "los_unlock1" "equip 6 0 8; alias los_toggle1 los_standard1_display"
alias "los_unlock2" "equip 6 1 7; alias los_toggle2 los_standard2_display"
alias "los_unlock3" "equip 6 2 9; alias los_toggle3 los_standard3_display"

alias "los_standard1_display" "los_standard1; echo Minigun"
alias "los_standard2_display" "los_standard2; wait 50; slot2; echo Shotgun"
alias "los_standard3_display" "los_standard3; wait 50; slot3; echo Fists"

alias "los_unlock1_display" "los_unlock1; echo Natascha"
alias "los_unlock2_display" "los_unlock2; wait 50; slot2; echo The Sandvich
alias "los_unlock3_display" "los_unlock3; wait 50; slot3; echo The Killing Gloves of Boxing"

//CONFIGURATION:
//los_standard1 //Minigun
//los_unlock1   //Natascha
//los_standard2 //Shotgun
//los_unlock2   //The Sandvich
//los_standard3 //Fists
//los_unlock3   //The Killing Gloves of Boxing
Added: 3 months ago
Feedback (6)
Sturmeh .
Oh dear, i've made quite a mess.Y2M
Posted 3 months ago
Thanks for the aliases.

Where did you get them? ( educated guesses? )
- Oh dear, i've made quite a mess.
.
Y2M
Posted 3 months ago
Very nice. I was actually looking for scripts like these since when I play TF2 on Ubuntu, I can't change my loadout. Hopefully this will work for me. :D
Maximillian .
Adding RPGB and RTSB was a shit idea.Y2M
Posted 3 months ago
Amazing script, really good.
- Adding RPGB and RTSB was a shit idea.
naughtyme .
Always trying to improveY2M
Posted 3 months ago
If you were my wife, I'd attempt to make love to you - but you aren't, so have some high points.

High 5!
- Always trying to improve
UKCS-Alias .
The KnifosaurusY2M
Posted 3 months ago
Pros: Deffinitely one of the most usefull scripts for the unlocks. Completely bypassing the menu. I also like the trick you did at the bottom for settings a standard loadout.
Its also usefull to be able to see the loadout you picked
Improvements: Only some comment lines describing how the scipt works so people can edit it a little bit when they want to (not that its realy needed as the script is easy to use already).
Notes: This script gets a perfect score from me.

EDIT:
I allmost forgot to tell i would like these sctipts for other classes also.
EvilDaedalus .
Lies.Y2M
Posted 3 months ago
Excellent. One of the few script types that bypasses a rather unwieldy and unnecessary menu.
- Lies.
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
User Rating [+]
9.7/10
bScore
9.69/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Added by...
Ranked 5696th ( 18) with 227 points.

[+] Donate
Vote for Submitter
Like this script? Vote UserError . for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.