{"id":18376438,"url":"https://github.com/jooonior/tf2-loadouts-script","last_synced_at":"2025-04-06T20:31:30.191Z","repository":{"id":171618251,"uuid":"246602194","full_name":"jooonior/tf2-loadouts-script","owner":"jooonior","description":"Loadout specific settings and a resup bind that knows which loadout you're on.","archived":false,"fork":false,"pushed_at":"2024-08-02T22:14:05.000Z","size":960,"stargazers_count":35,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T06:41:58.443Z","etag":null,"topics":["cfg","loadout","resup","tf2"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jooonior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-11T15:03:25.000Z","updated_at":"2024-12-30T12:29:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"104cb0a4-5580-4a81-a988-00fb05f98dbd","html_url":"https://github.com/jooonior/tf2-loadouts-script","commit_stats":null,"previous_names":["jooonior/tf2-loadouts-script"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooonior%2Ftf2-loadouts-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooonior%2Ftf2-loadouts-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooonior%2Ftf2-loadouts-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooonior%2Ftf2-loadouts-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jooonior","download_url":"https://codeload.github.com/jooonior/tf2-loadouts-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247547477,"owners_count":20956561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cfg","loadout","resup","tf2"],"created_at":"2024-11-06T00:23:20.039Z","updated_at":"2025-04-06T20:31:29.887Z","avatar_url":"https://github.com/jooonior.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# junior's loadouts script\n\nLoadout specific settings and a resup bind that knows which loadout you're on.\n\n[GitHub](https://github.com/juniorsgithub/tf2-loadouts-script)\n\u0026#183;\n[TFTV](https://www.teamfortress.tv/55661/improved-resup-bind-and-loadout-specific-settings)\n\n## Features\n\n- single resup key that always respawns you on the right loadout\n- loadout specific settings\n- remembers which loadout you have active on each class,\n  even after you restart TF2  \n\nResup bind\n_(aka [b4nny bind](https://m.twitch.tv/masonarium/clip/DeterminedBumblingWerewolfJKanStyle/))_\nlets you resupply while in spawn without needing to touch the fridge/cabinet.\nUnlike switching classes, it preserves all of your buildings, stickies\nand ubers (but not stored crits, heads or banner charges).  \n\n## Setup\n\n1. Download the VPK from\n   [the latest release](https://github.com/juniorsgithub/tf2-loadouts-script/releases/latest/download/loadouts.vpk)\n   and save it into your `tf/custom` folder\n\n2. Add `exec loadouts/init` to your `autoexec.cfg`\n\n3. Add `loadouts.\u003cclass\u003e` **at the end** of each of your\n   `\u003cclass\u003e.cfg`  \n\n   Replace `\u003cclass\u003e` with actual class names: `scout`, `soldier`, `pyro`, `demoman`,\n   `heavyweapons`, `engineer`, `medic`, `sniper`, `spy`\n\n4. Bind your keys\n  \n   `loadouts.A`, `loadouts.B`, `loadouts.C`, `loadouts.D` for switching loadouts  \n   `loadouts.resup` to resupply  \n\n   Do this in your `autoexec.cfg` or wherever you have your binds.  \n   \n   \u003cdetails\u003e\n   \u003csummary\u003eExample\u003c/summary\u003e\n\n   ```\n   bind F1 loadouts.A\n   bind F2 loadouts.B\n   bind F3 loadouts.C\n   bind F4 loadouts.D\n   bind ALT loadouts.resup\n   ```\n   \u003c/details\u003e\n\n   If you need help with key names see\n   [List of key names on TF2 Wiki](https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names).  \n\n## Loadout specific settings\n\nWhen changing to loadout _X_, the script calls corresponding `loadout.cfg.X` alias.\nYou can set these aliases to execute arbitrary commands when changing lodouts.\n\nIf you want to set these per class in your `\u003cclass\u003e.cfg`, you need to\ndo so **before** the `loadouts.\u003cclass\u003e` line.\nIf you want to set them globally, do so in your `autoexec.cfg` **after**\nthe `exec loadouts/init` line.\n\nDon't forget to reset these aliases (and affected settings) for other classes,\notherwise their values will carry over.\n\n\u003cdetails\u003e\n\u003csummary\u003eExample\u003c/summary\u003e\n\nYour `medic.cfg` could look something like this.\n```\nbind 1 slot1  // some binds\ncl_crosshair_scale 20  // some settings\n\nalias loadouts.cfg.A \"exec uber; say_team running uber\"\nalias loadouts.cfg.B \"exec kritz; say_team running kritz\"\nalias loadouts.cfg.C \"exec quickfix; say_team running quickfix\"\nalias loadouts.cfg.D  // no settings for D\n\nloadouts.medic\n```\n\u003c/details\u003e\n\n## FAQ\n\n### There's a delay between when I press the key and respawning.\n\nThat's normal. Happens with all resupply binds. You should press it\n(or spam it) right before you enter spawn.\n\n### Why does `loadouts.\u003cclass\u003e` have to be at the end?\n\nIt doesn't. But anything that comes after it overrides\nthe `loadouts.cfg.X` settings. If you are sure you're not breaking\nanything, you can put it anywhere you like.\n\n### Doesn't it break when item servers are down?\n\nYup.\n\n### Something else.\n\nCheck [the issues tab](https://github.com/juniorsgithub/tf2-loadouts-script/issues?q=is%3Aissue),\nsomeone might have already asked. If not, feel free to open a new issue.  \nAnother option is \n[TFTV](https://www.teamfortress.tv/55661/improved-resup-bind-and-loadout-specific-settings).\nI don't get notified when you comment there, but someone else might\nhelp you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooonior%2Ftf2-loadouts-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjooonior%2Ftf2-loadouts-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooonior%2Ftf2-loadouts-script/lists"}