XCOM 2
103 ratings
[WOTC] Pistol Expert Ability
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
240.135 KB
10 Sep, 2020 @ 3:02pm
14 Feb, 2021 @ 8:06am
6 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Pistol Expert Ability

In 1 collection by Veehementia
[WOTC] Veehementia's Mods and Ports
55 items
Description
READ. THE. DESCRIPTION.

-

DESCRIPTION

Kept you waiting, huh?

This mod aims to bring back the Gunslinger ability from XCOM EU/EW but with additional functionalities and more customization options, under a new name: Pistol Expert. I've always felt that the Gunslinger's tree Corporal ability (Return Fire) was very lacking and out of touch with the class, so I made this mod to finally distinguish the Pistol-wielding Sharpshooter from its peers.

What Pistol Expert does is adding a configurable amount of extra Damage/Aim/Crit Chance to any shot taken with a Pistol weapon, on a per weapon tier basis. You can configure the numbers in the mod's .ini file.

Its default values are:

///
Conventional
Magnetic
Beam
Damage
+1
+1
+2
Aim
+5
+10
+10
Crit Chance
+5%
+10%
+10%

Any of this values can be customized as you please.

COMPATIBILITIES AND ISSUES
  • Removes the "Return Fire" ability from the Sharpshooter's ability tree, and puts "Pistol Expert" in its place instead. Should you not want this to happen, this behavior is configurable in the .ini file.
  • Since the method used to swap abilities does not rely on the XComClassData.ini file, this mod should be compatible with most other class altering mods, provided they keep "Return Fire" at Corporal rank.
  • Since "Pistol Expert" only needs the weapon used to be a Pistol and not necessarily placed in a particular slot, the ability will work on any pistol in any slot on any soldier that has the ability.
  • For those who use custom classes or want this ability to be usable not only by the Sharpshooter, you can now make Pistol Expert a cross class perk. This behavior is configurable in the .ini. By default, the ability will only be available to Sharpshooters.

MODS SHOWN IN THE SCREENSHOTS

SPECIAL THANKS
  • I'd like to thank Iridar for yet again teaching me the ins and outs of XCOM 2 code with a patience unmatched by any mortal on this Earth. Thank you, truly, friend.
  • I'd also like to thank NeIVIeSiS for his exceptional work with both the mod preview image and the perk icon!
49 Comments
Veehementia  [author] 12 Apr, 2023 @ 3:57pm 
@zin try to reload your saved game.
zin 12 Apr, 2023 @ 3:34pm 
I have a problem: I got a Sharpshooter as a mission reward, and she does has Return Fire, not Pistol Expert. I have ‘SWAP_RETURNFIRE’ set to true in the config.

I tried using the RebuildSelectedSoldier class command from this mod:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1370543410

However, regardless of how many times I do that, they still have Return Fire, yet the command worked when I used it on another Sharpshooter, which was a standard soldier not obtained from a mission reward.
RustyDios 9 Apr, 2023 @ 1:36pm 
yes
zin 9 Apr, 2023 @ 1:27pm 
Thank you. If I set both swap and cross-class to true, does that mean Sharpshooter will get the ability 100% instead of Return Fire, and all other classes have a chance of randomly getting the ability?
Veehementia  [author] 9 Apr, 2023 @ 1:13pm 
@zin Yes to your first question, technically yes for the second. It being a cross-class perk means your Sharpshooter might roll it in his XCOM row. The only way to get it for sure would be to manually edit the Sharpshooter class and insert the ability in its config file in place of something else.
zin 9 Apr, 2023 @ 12:30pm 
Oh, okay. So with swap set to false and cross-class set to true, it’s a random ‘XCOM’ perk that can show up for anyone (including Sharpshooters), but not 100% of the time for Sharpshooters? Is this correct?

Also, I was hoping that with swap off, I’d get it in addition to Return Fire. Is there a way to achieve that?
Veehementia  [author] 9 Apr, 2023 @ 11:53am 
@zin It is just a random perk now. If you set ‘SWAP_RETURNFIRE’ to ‘false’ it will not swap Return FIre, meaning your sharpshooters won't have Pistol Expert in its place. ‘MAKE_ABILITY_CROSS_CLASS’ makes it so other soldiers can roll Pistol Expert in their XCOM row (true to allow it, false to make it exclusive to sharpshooters)
zin 9 Apr, 2023 @ 11:02am 
Thank you.

I have a problem, by the way!” I set ‘SWAP_RETURNFIRE’ to ‘false’ and ‘MAKE_ABILITY_CROSS_CLASS’ to ‘true’ in the config, also changing some of the stats for the ability in the same config file.

Then, I started a brand new WotC playthrough. However, when I promoted a rookie to a Sharpshooter, I realized she doesn’t have Pistol Expert. Return Fire is there, as expected, but where’s Pistol Expert? I hope it’s not just a random perk now.
Veehementia  [author] 9 Apr, 2023 @ 9:11am 
@zin What you've wrote is semantically correct, though I don't know what you want to do with it.
Pistol Expert works with any weapon that has the "pistol" weapon category (I.E. can be equipped by a vanilla Sharpshooter), modded or otherwise. It will not work with Autopistols as they have the "sidearm" weapon category.
zin 9 Apr, 2023 @ 9:05am 
Oh, and also, just wondering, does this work with the Autopistol, Shadowkeeper, and modded pistols?