NOW WORKING IN 0.9.9.47!
This is a mod for those running or making custom scenarios; to be able to limit custom loadouts according to a json file that is auto-populated in your profile folder under SquadLoadoutConfig/ (server side).
Enter your custom loadout name (exactly as it says on the loadout screen, case sensitive) and the number you want to limit that class to, and when that loadout reaches its maximum, it will no longer be available for players to select. (see images below for an example)
A few things to consider:
- You may want to disable weapons in any arsenal box.
- It would also be a good idea to disable loadout saving and the quick deploy option. You can disable the saved loadout slot by adding:
"#AR-Loadout_Editor_SavedArsenalLoadout_Name","0"to the json config under one of the classes. - I would also not limit the default "Rifleman" or "US Rifleman" Loadout.
- Should work with most game modes! (Tested on custom Conflict scenarios and Conflict of Nations)
Future Ideas:
adding whitelisting for restricted slots.- Whitelisting vehicle slots
See changelog below!
https://reforger.armaplatform.com/workshop/5D4F771D64AC1EA0-SquadLoadoutConfig
Example usage: A good use case for this mod would be if you were running a scenario like "Conflict of Nations" where you can choose "US Auto. Rifleman" as a loadout. Using this config file, you can limit the "US Auto. Rifleman" slot to any number you want. (Or completely disable it by setting the number allowed to 0)
More use cases: ```- completely disabling saved loadout slots for both teams by adding "#AR-Loadout_Editor_SavedArsenalLoadout_Name","0" to the json config.
- Having a Squad Leader (Radio Backpack) slot and you want to limit the class to only 2 players.
- Whitelisting the Commander slot to a single bohemia-ID```