Ability To Slot Reassignment

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

Author: Musashi

Last revision: 20 Feb, 2021 at 01:56 UTC (4)

File size: 484.35 KB

On Steam Workshop

Description:
Dynamic reassignment of item slots to abilities

This mod allows you to define weapon categories for abilities. Based on this config the mod will look for an item in the soldiers loadout that matches the weapon category and assigns the ability to the slot of the found item. This functionality was/is part of rpgo and is released standalone in this mod.

Example config in XComAbilityToSlotReassignment.ini

+AbilityWeaponCategories = (AbilityName=PistolStandardShot, WeaponCategories=(pistol, sidearm))

What this does is it will reassign the PistolStandardShot to the first slot it finds a pistol in. So it will be irrelvant what slot is defined in the XComClassData.ini of the soldier like

AbilityType=(AbilityName="PistolStandardShot", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon))

usually means PistolStandardShot will only work for secondary pistols. With the config above it doesnt matter if the pistol is in the primary, secondary, utility or dedicated pistol slot.

NOTE this mod does NOT provide any Primary Secondary, Dedicated Pistol Slot or Utility Slot Sidearm functionality by itself. Its a meta mod that those mods can depend on to make abilities work with their slots.

By default this mod supplies config for vanilla melee and pistol abilities.

Loadout API

Another feature of the mod is the loadout api. Its only interesting for modder as it offers an API to detect different loadouts like e.g primary pistol or dual wield melee. This is an attempt to unify the different methods of detecting loadouts in various mods and provide a single source of truth.

For more info see https://github.com/Musashi1584/AbilityToSlotReassignment/blob/master/README.MD

Mod troubleshooting

https://www.reddit.com/r/xcom2mods/wiki/mod_troubleshooting

Patreon

Have look at my work in progress and infos on my mods at my patreon page.
Your really like my mods and would like to help me have more time for modding? Consider become a patreon 🙂

https://www.patreon.com/musashi1584

Download
Required DLC:

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


XCOM 2: War of the Chosen
Revisions:

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