Loadout specific settings and a resup bind that knows which loadout you're on.
- single resup key that always respawns you on the right loadout
- loadout specific settings
- remembers which loadout you have active on each class, even after you restart TF2
Resup bind (aka b4nny bind) lets you resupply while in spawn without needing to touch the fridge/cabinet. Unlike switching classes, it preserves all of your buildings, stickies and ubers (but not stored crits, heads or banner charges).
-
Download the VPK from the latest release and save it into your
tf/custom
folder -
Add
exec loadouts/init
to yourautoexec.cfg
-
Add
loadouts.<class>
at the end of each of your<class>.cfg
Replace
<class>
with actual class names:scout
,soldier
,pyro
,demoman
,heavyweapons
,engineer
,medic
,sniper
,spy
-
Bind your keys
loadouts.A
,loadouts.B
,loadouts.C
,loadouts.D
for switching loadouts
loadouts.resup
to resupplyDo this in your
autoexec.cfg
or wherever you have your binds.Example
bind F1 loadouts.A bind F2 loadouts.B bind F3 loadouts.C bind F4 loadouts.D bind ALT loadouts.resup
If you need help with key names see List of key names on TF2 Wiki.
When changing to loadout X, the script calls corresponding loadout.cfg.X
alias.
You can set these aliases to execute arbitrary commands when changing lodouts.
If you want to set these per class in your <class>.cfg
, you need to
do so before the loadouts.<class>
line.
If you want to set them globally, do so in your autoexec.cfg
after
the exec loadouts/init
line.
Don't forget to reset these aliases (and affected settings) for other classes, otherwise their values will carry over.
Example
Your medic.cfg
could look something like this.
bind 1 slot1 // some binds
cl_crosshair_scale 20 // some settings
alias loadouts.cfg.A "exec uber; say_team running uber"
alias loadouts.cfg.B "exec kritz; say_team running kritz"
alias loadouts.cfg.C "exec quickfix; say_team running quickfix"
alias loadouts.cfg.D // no settings for D
loadouts.medic
That's normal. Happens with all resupply binds. You should press it (or spam it) right before you enter spawn.
It doesn't. But anything that comes after it overrides
the loadouts.cfg.X
settings. If you are sure you're not breaking
anything, you can put it anywhere you like.
Yup.
Check the issues tab,
someone might have already asked. If not, feel free to open a new issue.
Another option is
TFTV.
I don't get notified when you comment there, but someone else might
help you.