[WotC] Random Loadout Manager

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

Author: Nider001

Last revision: 17 Feb, 2022 at 16:25 UTC

File size: 57.34 KB

On Steam Workshop

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.