XCOM 2
530 ratings
[WOTC] Dedicated Pistol Slot 2.0
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
141.271 KB
6 Apr, 2019 @ 4:08pm
30 Jan @ 11:42am
32 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Dedicated Pistol Slot 2.0

In 1 collection by Veehementia
[WOTC] Veehementia's Mods and Ports
55 items
Description
READ ALL THE DESCRIPTION AND DON'T SKIP THE REQUIRED ITEMS, THEY ARE REQUIRED FOR A REASON!

YOU CAN FIND INSTRUCTIONS ON HOW TO CONFIGURE THIS MOD IN THIS GUIDE. ANY COMMENT ASKING FOR CONFIGURATION HELP HERE WILL BE IGNORED.

-

Hi there. Missed me?

-


DESCRIPTION

XCOM EU/EW soldiers always had a pistol to rely on in case they found themselves unable to reload or against an enemy with very little health left, even if said soldier was carrying a piece of equipment (except the Heavy class, which had Rocket Launchers instead). In XCOM 2 this feature was lost, probably in favor of emphasizing the Sharpshooter's Gunslinger tree.
Nevertheless, it irritated me to no end: you don't need special training to simply fire a gun.

Enter the Dedicated Pistol Slot.

As the title says, this mods adds a dedicated slot in which to equip Pistols (or whatever sidearm/item you want, this behaviour is configurable in the .ini) for all soldiers. By default configuration, the only two classes that miss this are the Sharpshooter (already has one) and the Templar (uses the Autopistol), but this can be changed in the config as well.

In order to better help players understand how to and how to not configure this mod (and all the new features of the 2.0 update), I've prepared a small guide that you can find here. Any comment asking for configuration help here will be ignored. If you need additional help after reading the guide, comment there, and I'll be happy to assist.


COMPATIBILITIES

I've included a number of compatibilities with other similar mods, specifically:
And that should be it. Note that none of the mods above are mandatory; you can still not download any of them and simply use the slot to equip Pistols or autopistols.

FOR RPGO USERS

Since the slot is now given using classes by default, the mod as is will not add any slot to your RPGO soldiers. This is because all vanilla classes (excluding Templars, Reapers, and Skirmishers) in RPGO are hidden, and all soldiers are now of the same class: UniversalSoldier. So, to add a pistol slot to all soldier in RPGO, you'll need to write:

+ADD_SLOT=(SOLDIER_CLASS="UniversalSoldier", WEAPON_CAT="pistol", ALLOW_EMPTY=false)

You can still add a slot via abilities if you so prefer.


REQUIRED ITEMS AND THEIR USE

  • Robojumper's Squad Select is necessary for the slot to be shown on the Squad Select Screen. Remember to uncheck the "Upgrade Icons Only For Primaries" checkbox [iridar.net] in Robojumper's Squad Select configuration. You can do that in .ini configuration or by using the Mod Config Menu mod.
  • [WOTC] Reliable Ever Vigilant is required to fix the interaction between Ever Vigilant and Specialists using the Dedicated Pistol Slot. If the Specialist has enough ammo left to fire with his/her primary weapon, Ever Vigilant will work as normal; if the specialist does not have enough ammo to fire his/her primary weapon, he/she will use the pistol instead (provided Overwatch is set up with higher priority then PistolOverwatch in Reliable Ever Vigilant's configuration file)
  • WotC Mod Everything Reloaded is not a hard requirement, but it will allow you to be able to upgrade your pistols/sidearms directly from the loadout screen, instead of using Robojumper's Squad Select. Huge thanks to Musashi for updating the mod with Dedicated Pistol Slot compatibility!


INCOMPATIBILITIES

This mod is incompatible with Ammo and Vest Slots [WOTC] and [WOTC] Tons Of Utility Items.

To offset this, I've included a XComGameData.ini in the config folder. Inside, you'll be able to add either a Grenade Slot or an additional Utility Slot on a per-ability basis.


DONATIONS

Want to buy me a drink? To say "thank you"? To fill me with booze as to make me fall in an alcohol-induced coma and stop making bad jokes? Now you can! You can donate here: paypal.me/nardonematteo98
Donations are NOT required and I won't stop making stuff if you don't donate, don't worry: I make stuff for passion, not money. It's just a way to say "thank you". Or to fuel my alcoholism. Whatever sounds better.

That said, go play and have fun!


SPECIAL THANKS:

  • Iridar, who basically dictated me the code himself, and taught me everything in-between. Go check out his Patreon. [www.patreon.com] He deserves it. A lot.
  • Musashi, whose WOTC Vest Slot mod I used as a base and inspiration to make this one.
  • Robojumper, who helped me fix a visualization bug in the UI, and for his wonderful Squad Select .
  • Ginger, who explained me how slots worked and helped me set up this one. Thanks, friend.
  • FearTheBunnies, for both the idea and implementation of an exclusion list.
  • And obviously the entirety of Team CX for being the crazy, fun and helpful modding group they are!
698 Comments
luci5r 19 Jun @ 1:06pm 
UPDATE: Ok, so I do realize now that LWOTC already contains what this Mod does, and I was duplicating it in a way.

However, if anyone knows the answer to this: Is there any way I can add a dedicated slot to certain Soldier Classes for items other than pistols, like sawed off shotgun etc?
luci5r 19 Jun @ 12:54pm 
@Veehementia Thanks for your response! I didn't realize this was incompatible with LWOTC. I did in fact figure out part of my issue. I had the "Ton of utility items" mod enabled.

Interestingly, once I disabled and uninstalled the "Tons of utility items" mod, I do actually get a dedicated Pistol slot now for my soldiers, so part of your mod is actually working.

I'm not sure what you mean by included in LWOTC. I did not have a pistol slot for my soldiers in LWOTC.

Additionally, the reason I wanted to use your mod was to apply a dedicated Sawed Off Shotgun or Arc Thrower type of slot to certain soldiers. While the dedicated pistol slot is working fine now using your mod, I can't get any other items slots to show up in the soldiers.
Veehementia  [author] 18 Jun @ 5:15pm 
@luci5r This mod is incompatible with LWOTC as it is already included in it but made to be not configurable by the user.
Dragon32 18 Jun @ 5:01pm 
@luci5r
For Lily Shen on Lost Towers:
+ADD_SLOT=(SOLDIER_CLASS="ChiefEngineer", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
Change ChiefEngineer to the Class name. What you've got is one from the Proficiency Classes, the combat engineer maybe?
luci5r 18 Jun @ 4:33pm 
@Veehementia
luci5r 18 Jun @ 3:38pm 
I seem to be having some trouble getting this to work; I'm likely missing something.

In the XComPistolSlot.ini, I added the following for most classes:

+ADD_SLOT=(SOLDIER_CLASS="WOTC_APA_Specialist", WEAPON_CAT="pistol", ALLOW_EMPTY=false)

But a pistol slot does not appear for any of them.

I'm using the Proficiency Pack and a custom Combat Engineer class with LWOTC, and I got the Class Names from their respective INI files.

I then tried:

+ADD_SLOT=(SOLDIER_CLASS="WOTC_APA_Specialist", SOLDIER_ABILITY="CarryUnit", WEAPON_CAT="pistol", ALLOW_EMPTY=false)

But I still don't see the pistol slot.

What am I missing?
Joker_Newbee 7 May @ 3:40am 
Is this mod compatible to the Slot Reassignment Mod (https://steamproxy.net/sharedfiles/filedetails/?id=2133397762)? Because i want to use some pisol perks with my own classes. When it´s not, then i will further use Utility Slot Sidearms.
AJTheGreat2010 21 Feb @ 3:57am 
Just curious, do the sidearms from the Resistance Firearms mod, https://steamproxy.net/sharedfiles/filedetails/?id=1132835147&searchtext=resistance+weapons work with this mod?
STyGIAN 16 Dec, 2023 @ 1:59pm 
@eddieGT put this in your dedicated pistol slot config

+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Assault", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Shinobi", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Sharpshooter", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Specialist", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Gunner", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Ranger", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Grenadier", WEAPON_CAT="pistol", ALLOW_EMPTY=false)
+ADD_SLOT=(SOLDIER_CLASS="LWOTC_Technical", WEAPON_CAT="pistol", ALLOW_EMPTY=false)

It can go under the other default classes just fine. Very compatible, and very fun :)
Buizerd |SBG| 1 Dec, 2023 @ 11:15am 
i'm a bit stuck atm regarding the pistol slots.they work for the proficiency pack classes, like assault and engineer, but not the grenadier, specialist etc.for those the list is empty. do i need to create entrees for those classes in the ini also?