XCOM 2
51 ratings
Multicast Ability cost fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
89.009 KB
2 Jun, 2017 @ 10:50pm
1 Change Note ( view )

Subscribe to download
Multicast Ability cost fix

Description
Fixes a bug where multi shot abilities such as chain shot or rapid fire does not properly trigger action point refunds if the killing shot is the second shot, this changes the behaviour of such abilities so that when the second shot happens, the post cost paid trigger calculates based on the action points the unit has before the first shot is fired.

The config to support more abilities can be found in
<steam library directory>\SteamApps\workshop\content\268500\938537423\Config\XComCostFix.ini

Uncomment the last line to enable support for LW2 Double Tap.

Dev note: If the multi shot uses more than 2 abilities, you will need an entry for each extra abilities all pointing to the same original ability (the one you clicked in the ability container) as triggering ability.

Compability:
This mod changes the ability template class of the second shot abilities, so it may not be compatible with mods that does the same or overwrites X2AbilityTemplate.
25 Comments
KT Chong 12 Dec, 2018 @ 2:39am 
The "[WOTC] Ability Interaction Fixes" by Mr. Nice fix the same bug with chain shot and rapid fire (and more.)
Aamaxu 24 Mar, 2018 @ 4:35pm 
I'm not certain but I'm fairly sure this mod working on my previous WotC playthroughs. I'm not using the RPG Overhaul or anything related to it.

The only other mods in addition to the previous two mentioned that could affect this are:
[WOTC] New Promotion Screen by Default
View Locked Skills - Wotc
[WOTC] Detailed Soldier Lists
Normalize SPARKs

Though I imagine it's unlikely, especially on the last one's case.

I'm not gonna lose sleep over this or whatever but I'm pretty interested to finding out what weird thing is causing this strange behaviour in my game.

For the record as well: I have done a full config cleanse as well so shouldn't be any remnants.
-bg-  [author] 24 Mar, 2018 @ 4:21pm 
also that is caused by something adding ability entries to ability trees with no template in it. Are you using any RPG overhaul submods without the RPG overhaul?
-bg-  [author] 24 Mar, 2018 @ 4:18pm 
oh this mod is not designed for WOTC, I haven't checked if any code is affected, but that seems to be some other mods messing with ability trees, this mod don't touch that, also the templates it replace should not be in any pool for random skills.
Aamaxu 24 Mar, 2018 @ 3:49pm 
Which is why it's so strange. The mod's been working just fine previously. I tested it again and using this mod (with whatever else) does cause the following to happen: https://i.imgur.com/q2sxyeP.png

Does that 'LocFriendlyName' tell you anything?

And seems I misspoke when I mentioned the oddness blacks out the hidden abilities; it only fills up the ability tree.

Could there be some conflict with [WoTC] XCOM Psi Overhaul [NEW UPLOAD]?
-bg-  [author] 24 Mar, 2018 @ 3:30pm 
nope, not that, neither mod modifies the skill tree. It's something else.
Aamaxu 24 Mar, 2018 @ 3:29pm 
Seems like this mod conflicts with something - maybe Community Highlander as that's a new mod I'm using this time around.

What happens is, the mod / conflict generates several black boxes in the ability tree that contain nothing useful in them. Basically it just fills all the ability tree slots, and the hidden ability slots.
< blank > 4 Sep, 2017 @ 2:05pm 
@-bg- Your mods are AMAZING (and seriously, Firaxis should give you a job title). Do you plan to update it to the WotC version? I don't know if the Chain Shot/Rapid Fire + Death from Above works as Derp King 1991 -_- mentioned, but I believe it still does not work with the Rapid Fire. For that, my serial ranger is so sad... :(
DERPKING1991 4 Sep, 2017 @ 1:14am 
Well as long as death from above works with base guns like it says than thats fine with me. I know the chosen sniper works fine with it
-bg-  [author] 4 Sep, 2017 @ 12:54am 
yes wotc version will be a different mod entry there's significant changes that affect this