XCOM 2
29 ratings
[WotC] Random Loadout Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
58.770 KB
17 Feb, 2022 @ 3:25am
17 Feb, 2022 @ 8:25am
5 Change Notes ( view )

Subscribe to download
[WotC] Random Loadout Manager

Description
Introduction

Are you tired of seeing enemies use the exact same loadout every time you face them? Perhaps you want to make grenades appear on Troopers only 50% of the time or see Stun Lancers with shotguns occasionally...

This mod will not fullfill your wishes by itself, but can be used by other mods to achieve everything described above. In fact, you can even do it yourself.

How does the mod work

The process of assigning random loadouts if fairly simple. XComGameData.ini config file inside the mod folder has all the necessary information and examples (they are commented out by default). Firstly, add a unit name to 'UnitsWithMultipleLoadouts' array. Doing so tells the mod that specified unit wants to use random loadouts instead of default one. Next, add a bunch of new loadouts for the unit to select from. Default loadout is now ignored while each new one has an equal chance to be used. Therefore, the chance can be increased by adding the same loadout multiple times.

Compatibility

The mod overrides 'ApplyInventoryLoadout' function inside 'XComGameState_Unit' class. However, it should not have compatibility issues with Community Highlander.
7 Comments
Nider001  [author] 24 Mar, 2022 @ 11:03pm 
@DukeBurger, of course. Loadouts are assigned to units right before the latter spawn, so things like load order don't really matter. Keep in mind that this mod does not add new loadouts by itself, but instead acts as a foundation for other mod makers (so you'd need to add custom loadouts yourself).
DukeBurger 24 Mar, 2022 @ 12:34pm 
Dumb question but this will work with modded enemies right ? id love to use this to spice up the enemies from ABA.
Nider001  [author] 17 Feb, 2022 @ 9:14pm 
@Król Artur, I haven't tested it with long war, sorry
NightNinja54 17 Feb, 2022 @ 7:35pm 
This is a really great idea, kudos!
Król Artem 17 Feb, 2022 @ 7:19pm 
lwotc compatible?
Rdza 17 Feb, 2022 @ 11:46am 
Is it possible to do the same for X-COM soldiers?
Nider001  [author] 17 Feb, 2022 @ 4:31am 
If you want an example of what this mod can do, I just released one: https://steamproxy.net/sharedfiles/filedetails/?id=2756125285