[WOTC] Automated Loadout Manager

If you liked this item, please rate it up on Steam Workshop page.

Author: Iridar

Last revision: 8 Nov, 2019 at 11:21 UTC (4)

File size: 3.82 MB

On Steam Workshop

Description:
TL;DR

This mod automatically equips last used items when you add a soldier to Squad Select screen, even if you click "Unequip Barracks".

FEATURES
  • When you remove a soldier from squad select screen, the mod will automatically remember the soldier’s Loadout.
  • When you add a soldier to squad select screen, the mod automatically tries to equip their remembered Loadout.

If any part of the soldier’s remembered loadout is currently unavailable (e.g. their last equipped weapon is already equipped on another soldier in the squad), the mod will automatically try to replace the missing item with the next best thing. For example, if both of your Snipers have Darklance as their last used weapon, the mod will automatically equip a Beam Sniper Rifle on the second Sniper when you add them to squad.

The automatic part of the mod happens only on Squad Select screen.

Squad Select screen and individual soldier loadout screen will also have buttons to manually "SAVE LOADOUT" or "LOCK LOADOUT".

While the soldier’s loadout is "LOCKED", it will not be automatically rewritten when the soldier is removed from squad select screen.

For example, if you equip a Darklance on a Sniper, then lock their loadout, then equip a Beam Sniper Rifle on them and then remove them from squad select, the remembered loadout will still contain the Darklance.

"SAVE LOADOUT" will save currently equipped loadout even if it’s locked.
"LOCK LOADOUT" will also save the currently equipped loadout. Lock loadout does not prevent "Unequip Barracks" button from stripping the soldier’s gear. It only prevents the mod from overwriting soldier’s saved loadout when they are removed from squad select.

PURPOSE

This mod is a huge time saver when playing with increased squad sizes, especially if every soldier can potentially equip a variety of primary and secondary weapons. In these scenarios, the soldiers’ preferred equipment gets both hard to track and annoying to re-equip on them for every mission.

REQUIREMENTS
  • X2WOTCCommunityHighlander is required only so that the new buttons can be accessed with a controller. if you don’t care about controller support, the mod will still function fine without the Highlander.

COMPATIBILITY

Compatible with:

The mod has no overrides and generally should be compatible with almost anything. Safe to add mid-campaign, but shoud not be removed.

CONFIGURATION

You can reposition the buttons on the soldier’s individual loadout screen through:

..steamappsworkshopcontent2685001882809714ConfigXComALS.ini

You can also enabled debug logging here.

COMPANION MODS

Remove Weapon Upgrades – This mod adds a button to, well, remove weapon upgrades from all weapons that are not currently equipped on squad members. That would mean you have to reassing your weapon upgrades every time you go on a mission, once you have Reusable Upgrades tech / breakthrough. However, that mod can now be configured to *not* remove weapon upgrades from weapons that have a nickname. It can also be configured to remove weapon ugprades from secondary weapons as well. For, that put this code into that mod’s XComGame.ini:

[RemoveWeaponUpgradesWOTC.X2DownloadableContentInfo_RemoveWeaponUpgradesWOTC] DLCIdentifier="RemoveWeaponUpgradesWOTC" DontRemoveUpgradesFromNamedWeapons=true +SlotsToRemove=eInvSlot_PrimaryWeapon +SlotsToRemove=eInvSlot_SecondaryWeapon

TODO

Auto-equip weapon upgrades.
Better algorithm for finding replacement equipment.
Some sort of indicator on squad select which soldiers have locked loadouts.

KNOWN ISSUES

Currently none.

TROUBLESHOOTING

If the mod appears to work incorrectly, please send me your Launch.log file, located at:

..Documentsmy gamesXCOM2 War of the ChosenXComGameLogsLaunch.log

This console command can be used to wipe out saved loadouts, should you need to.

ALMResetSavedLoadouts

Due to some bugs in the early versions of the mod, some of your soldiers may end up with "hidden" items that are still equipped on them, but you don’t see them, and can’t unequip them through in-game interface. For example, you may be trying to equip a grenade on the soldier, but the game will say that this soldier already has one equipped. Use this console command to fix this issue:

ALMUnequipBrokenItems

CREDITS

Controller support implemented by Mr.Nice.

Please support me on Patreon[www.patreon.com] if you require tech support, have a suggestion for a feature, or simply wish to help me create more awesome mods.

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen
Required items:

Click the title to search on this site.


X2WOTCCommunityHighlanderSteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.