XCOM 2
879 ratings
Ability To Slot Reassignment
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
496.388 KB
Jun 17, 2020 @ 11:26am
Feb 19, 2021 @ 6:56pm
11 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Ability To Slot Reassignment

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
Popular Discussions View All (2)
13
2
Jun 15, 2024 @ 1:29pm
No Longwatch Bug And More Abilities Missing
RustyDios
0
Aug 19, 2024 @ 11:16pm
cant use bow when with [WotC] BowCaster-Psionic Guided Bow(ver 1.5)
沧月流觞
140 Comments
Black Stabbath Jan 1 @ 12:23pm 
sorry seems like an issue with Wotc Samurai Class mod
Black Stabbath Jan 1 @ 12:06pm 
swords seem to be missing the attack ability for me
X Nov 21, 2024 @ 3:42am 
and also ripjack doesnt get the blademaster ability bonus for me
X Nov 21, 2024 @ 3:41am 
this mod isn't working for me, i tried everything i can but i still cant use lightning hands with pistol in primary slot, is it because im using old primary secondary?
Pettyhkiin Aug 24, 2024 @ 3:55am 
I cant get this mod to work with amalgamation classes.
Other classes are working correctly
Anyone had this problem or knows a solution for this?
沧月流觞 Aug 19, 2024 @ 11:15pm 
这个mod会导致[WotC] BowCaster-Psionic Guided Bow(ver 1.5)里的魔导弓不能使用。经过我研究,需要修改XComLoadoutApi.ini,
+PistolWeaponCategories=bow;启用这行,是原版模式,弓需要消耗专注导致很弱,弓之魔法师的手枪舞者可以变成不用清空弹夹,但是伤害变成非近战。另外不选择这条会导致武器装备页面需要先选择升级过的手枪然后删掉才能变成默认装备魔导弓。
+MainWeaponCategories=bow ;启用这行不需要耗费专注来当子弹了,但是相对的,魔法少女MOD里弓之魔法师人物的手枪舞者和专注装弹变成了无用技能,而且只启用这条导致武器装备页面需要先选择手枪然后删掉才能默认装备魔导弓。两条都启用会按启用PistolWeaponCategories走。
多少都有点瑕疵,希望作者修复。
RustyDios Oct 21, 2023 @ 4:20pm 
What pistol are they using. Are you using OLD Primary secondaries or TRUE Primary Secondaries. Which pistol class are you using? How is the unit getting Lightning Hands?
Is this an RPGO run, a LWotC run, a CI run?
What other mods do you have that might affect the interaction ?
Zenuge Oct 21, 2023 @ 4:14pm 
well, did everything i could, went barebones, just the essential mods, and still no lightning hands for my primary pistol user. I think there's suppose to be some config file in documents/mygames/com ect. cause i didn't see any in there, but we'll see if anyone is still playing and modding the game by now.
Zenuge Oct 19, 2023 @ 6:54pm 
Yeah, it's not working for me, all i want is a pistol dude with a ripjack, but LighReflex still isn't working. even started a new game.
HKR31 Jun 10, 2023 @ 12:14pm 
Is this required if i am using RPG overhaul?