Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jooonior/tf2-loadouts-script
Loadout specific settings and a resup bind that knows which loadout you're on.
https://github.com/jooonior/tf2-loadouts-script
cfg loadout resup tf2
Last synced: about 2 months ago
JSON representation
Loadout specific settings and a resup bind that knows which loadout you're on.
- Host: GitHub
- URL: https://github.com/jooonior/tf2-loadouts-script
- Owner: jooonior
- Created: 2020-03-11T15:03:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T22:14:05.000Z (5 months ago)
- Last Synced: 2024-08-03T00:15:00.319Z (5 months ago)
- Topics: cfg, loadout, resup, tf2
- Language: Shell
- Homepage:
- Size: 938 KB
- Stars: 30
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# junior's loadouts script
Loadout specific settings and a resup bind that knows which loadout you're on.
[GitHub](https://github.com/juniorsgithub/tf2-loadouts-script)
·
[TFTV](https://www.teamfortress.tv/55661/improved-resup-bind-and-loadout-specific-settings)## Features
- 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 TF2Resup bind
_(aka [b4nny bind](https://m.twitch.tv/masonarium/clip/DeterminedBumblingWerewolfJKanStyle/))_
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).## Setup
1. Download the VPK from
[the latest release](https://github.com/juniorsgithub/tf2-loadouts-script/releases/latest/download/loadouts.vpk)
and save it into your `tf/custom` folder2. Add `exec loadouts/init` to your `autoexec.cfg`
3. Add `loadouts.` **at the end** of each of your
`.cfg`Replace `` with actual class names: `scout`, `soldier`, `pyro`, `demoman`,
`heavyweapons`, `engineer`, `medic`, `sniper`, `spy`4. 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](https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names).## Loadout specific settings
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 `.cfg`, you need to
do so **before** the `loadouts.` 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 settingsalias 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 Dloadouts.medic
```## FAQ
### There's a delay between when I press the key and respawning.
That's normal. Happens with all resupply binds. You should press it
(or spam it) right before you enter spawn.### Why does `loadouts.` have to be at the end?
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.### Doesn't it break when item servers are down?
Yup.
### Something else.
Check [the issues tab](https://github.com/juniorsgithub/tf2-loadouts-script/issues?q=is%3Aissue),
someone might have already asked. If not, feel free to open a new issue.
Another option is
[TFTV](https://www.teamfortress.tv/55661/improved-resup-bind-and-loadout-specific-settings).
I don't get notified when you comment there, but someone else might
help you.