XCOM 2
[WOTC] Dedicated Pistol Slot 2.0
This topic has been locked
Veehementia  [developer] 24 Apr, 2019 @ 4:40pm
[OUTDATED] Configuring the slot for the LW2 Classes
WARNING: AS OF THE 2.0 UPDATE, THIS GUIDE IS OBSOLETE AND NOT WORKING. FOR BETTER INSTRUCTIONS, REFER TO THIS ONE.

[Credits to @Korbit]

To configure the slot to be usable by the LW2 Classes, add the following to the XComPistolSlot.ini:

+AbilityUnlocksPistolSlot=ArcthrowerStun
+AbilityUnlocksPistolSlot=LWRocketLauncher
+AbilityUnlocksPistolSlot=LWFlamethrower
+AbilityUnlocksPistolSlot=LW2WotC_Slash
+AbilityUnlocksPistolSlot=LW2WotC_Fleche
+AbilityUnlocksPistolSlot=PointBlank
+AbilityUnlocksPistolSlot=Suppression

Then remove the semicolon before "+AbilityUnlocksPistolSlot=Squadsight."


No longer needed as of 05/05/2019. Slot should be given right from the start. For details check out the Change Notes or the configuration .ini. Still thanks to @Korbit for his initial contribution.

Useful Info Below

To have the pistol perks work with the pistols equipped in my slot [thanks to @SoloCross]:
XComClassData.ini for the LW2 Classes with pistol slot here: https://pastebin.com/8AGV07P6

I also made a version that adds pistol perks as XCOM abilities instead... sorta. I used RandomAbilityDecks instead of TCPC and got them to work fine. That one is here: https://pastebin.com/9CQx5r7Y

This one needs a bit more set up tho, you have to add the lines

+ClassesExcludedFromAWCRoll=LWOTC_Assault
+ClassesExcludedFromAWCRoll=LWOTC_Shinobi
+ClassesExcludedFromAWCRoll=LWOTC_Sharpshooter
+ClassesExcludedFromAWCRoll=LWOTC_Specialist
+ClassesExcludedFromAWCRoll=LWOTC_Gunner
+ClassesExcludedFromAWCRoll=LWOTC_Ranger
+ClassesExcludedFromAWCRoll=LWOTC_Grenadier
+ClassesExcludedFromAWCRoll=LWOTC_Technical

under [XComGame.CHHelpers] in XComGame.ini to prevent the game from adding a second row of XCOM abilities to the LW2 classes.

Due to using RandomAbilityDecks rather than regular XCOM abilities this version of the ini will give 7 XCOM abilities instead of 4, but unlike the previous ini, this one actually plays nice with I'm the Commander Here!, so you can use that to set the number back to 4.

Set up for use with I'm the Commander Here! is adding the lines

+ClassAndDeckNames=(Classname="LWOTC_Assault", Deckname="AssaultXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Shinobi", Deckname="ShinobiXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Sharpshooter", Deckname="SharpshooterXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Specialist", Deckname="SpecialistXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Gunner", Deckname="GunnerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Ranger", Deckname="RangerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Grenadier", Deckname="GrenadierXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Technical", Deckname="TechnicalXComAbilities")

under [ImTheCommanderHere.ImTheCommanderHere_Utilities] in XComImTheCommanderHere.ini
Last edited by Veehementia; 5 May, 2020 @ 1:29pm
< >
Showing 1-15 of 19 comments
Eko 27 Apr, 2019 @ 4:28am 
If I may ask ...
I Have done this and am able to put a pistol in the slot using LW perks and classes mod ...
I then added pistol abilities to the AWC and used I'm the commander to respec the xcom tree with fanfire etc...
my problem is that the abilities display on the tactical UI but are not activated ....
any ideas ?
Veehementia  [developer] 27 Apr, 2019 @ 5:11am 
Originally posted by Eko:
If I may ask ...
I Have done this and am able to put a pistol in the slot using LW perks and classes mod ...
I then added pistol abilities to the AWC and used I'm the commander to respec the xcom tree with fanfire etc...
my problem is that the abilities display on the tactical UI but are not activated ....
any ideas ?

I don't play with the LW2 Classes so I can't say I know what is going on. Do all Pistol-related abilities not work? Or some do? The only complaint I got regarding Pistol abilities was with Quickdraw, and that's been fixed.
Eko 27 Apr, 2019 @ 5:37am 
I can only fire pistol and pistol overwatch ...
which from what I have read are weapon abilities..
Pistols have been removed form the LW2 mod the author has posted this fix ..

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1335226018/2572002906856336386/

which i did ...

I edited the class INI to include pistols linked to secondary slot ...
so i can now also place a pistol into the standard secondary slot ...
example:
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="shotgun")
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="arcthrower")
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="pistol")

is the pistol slot you have made just a secondary slot for link purposes ??

if you know what i mean ?? or do i need to say pistolslot or something like that?

Like do i need to do something like this somewhere ...

(AbilityType=(AbilityName="ArcthrowerStun", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)) \\

changing arcthrower to pistol and apply to a different slot?

I am not using the utility slot pistol mod either your MOD should cover it I presume ...
Last edited by Eko; 27 Apr, 2019 @ 5:42am
Veehementia  [developer] 27 Apr, 2019 @ 5:52am 
Originally posted by Eko:
I can only fire pistol and pistol overwatch ...
which from what I have read are weapon abilities..
Pistols have been removed form the LW2 mod the author has posted this fix ..

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1335226018/2572002906856336386/

which i did ...

I edited the class INI to include pistols linked to secondary slot ...
so i can now also place a pistol into the standard secondary slot ...
example:
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="shotgun")
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="arcthrower")
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="pistol")

is the pistol slot you have made just a secondary slot for link purposes ??

if you know what i mean ?? or do i need to say pistolslot or something like that?

Like do i need to do something like this somewhere ...

(AbilityType=(AbilityName="ArcthrowerStun", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)) \\

changing arcthrower to pistol and apply to a different slot?

I am not using the utility slot pistol mod either your MOD should cover it I presume ...

My pistols are not linked to eInvSlot_SecondaryWeapon. They are linked to eInvSlot_ExtraSecondary.

The fix you're talking about is what I use to get pistol abilities in the training center, and it works in my case. Theoretically speaking all you'd need to do is add the pistol perks and they should work from the get-go, providing you're using the pistols in my pistol slot.
Last edited by Veehementia; 27 Apr, 2019 @ 5:53am
Eko 27 Apr, 2019 @ 6:12am 
Yea must have something to do with the LW2 class mod
Taken form the mods description ..

"None of these classes use pistols. This is an intentional design decision."

So all the classes secondary weapons use the LW2 weapons arc thrower ETC..

so simply adding you pistol slot and adding in the pistol perks ...
doesn't work out of the box ...

I'm looking to build a new campaign based around the LW2 classes and am trying to work out a work around I'll try adding a eInvSlot_ExtraSecondary with pistol entry into one of the classes and see how it goes ..
Eko 27 Apr, 2019 @ 7:50am 
well this is frustrating sorry to be a noob lol ...

so I have totally reset all mods
gotten rid of LW2 classes and am just running with Vanilla classes
added pistol perks to a soldier via training center
they show up on the action bar but some say incompatible weapon or no ammo ....
...
I got NFI ...:steamfacepalm:
SoloCross 27 Apr, 2019 @ 8:18am 
I added the Pistol perks to the LW2 classes as a fourth ability branch rather than AWC perks (adding a fourth branch produces weird behavior with I'm the Commander Here! tho, so watch out if you're using that).

You just have to switch ApplyToWeaponSlot=eInvSlot_SecondaryWeapon to ApplyToWeaponSlot=eInvSlot_ExtraSecondary when you are adding them... for example:

(AbilityType=(AbilityName="Fanfire", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon))
to
(AbilityType=(AbilityName="Fanfire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary))

I can get you my ini later if you want.
Eko 27 Apr, 2019 @ 8:50am 
Yes Please :D
Veehementia  [developer] 27 Apr, 2019 @ 9:16am 
Originally posted by SoloCross:
I added the Pistol perks to the LW2 classes as a fourth ability branch rather than AWC perks (adding a fourth branch produces weird behavior with I'm the Commander Here! tho, so watch out if you're using that).

You just have to switch ApplyToWeaponSlot=eInvSlot_SecondaryWeapon to ApplyToWeaponSlot=eInvSlot_ExtraSecondary when you are adding them... for example:

(AbilityType=(AbilityName="Fanfire", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon))
to
(AbilityType=(AbilityName="Fanfire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary))

I can get you my ini later if you want.

Please do post your ini here so people with the same issues can look it up in this thread instead of searching around. Thanks!
SoloCross 27 Apr, 2019 @ 11:39am 
OK, XComClassData.ini for the LW2 Classes with pistol slot here: https://pastebin.com/WY4t1FuA

If you don't want to add a fourth branch of abilities and just want them as AWC perks though, going with the TCPC suggested fix should work if you also add this to the XComClassData.ini that comes with that mod:

+ExtraCrossClassAbilities=(AbilityName="ReturnFire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LightningHands", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="Quickdraw")
+ExtraCrossClassAbilities=(AbilityName="Faceoff", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="FanFire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LW2WotC_ClutchShot", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LW2WotC_Gunslinger", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)

Haven't tried that myself though.
Veehementia  [developer] 27 Apr, 2019 @ 12:57pm 
Originally posted by SoloCross:
OK, XComClassData.ini for the LW2 Classes with pistol slot here: https://pastebin.com/WY4t1FuA

If you don't want to add a fourth branch of abilities and just want them as AWC perks though, going with the TCPC suggested fix should work if you also add this to the XComClassData.ini that comes with that mod:

+ExtraCrossClassAbilities=(AbilityName="ReturnFire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LightningHands", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="Quickdraw")
+ExtraCrossClassAbilities=(AbilityName="Faceoff", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="FanFire", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LW2WotC_ClutchShot", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)
+ExtraCrossClassAbilities=(AbilityName="LW2WotC_Gunslinger", ApplyToWeaponSlot=eInvSlot_ExtraSecondary)

Haven't tried that myself though.

Thanks! I'm gonna add this comment at the top, so people can immediately see it once they open the discussion.
SoloCross 27 Apr, 2019 @ 1:29pm 
Originally posted by Veehementia:
Thanks! I'm gonna add this comment at the top, so people can immediately see it once they open the discussion.
Neat. Might want to omit the AWC part tho, that one unfortunately didn't work (most of the vanilla perks were unusable, seems TCPC can't correctly apply them to the ExtraSecondary slot. Clutch Shot, Gunslinger and Quickdraw worked correctly however)
SoloCross 29 Apr, 2019 @ 1:27am 
Hey, just a heads up, I noticed I screwed up some parentheses in the ini I uploaded and the classes were not gaining any stats on promotion because of it. Fixed version here: https://pastebin.com/8AGV07P6

I also made a version that adds pistol perks as XCOM abilities instead... sorta. I used RandomAbilityDecks instead of TCPC and got them to work fine. That one is here: https://pastebin.com/9CQx5r7Y

This one needs a bit more set up tho, you have to add the lines

+ClassesExcludedFromAWCRoll=LWOTC_Assault
+ClassesExcludedFromAWCRoll=LWOTC_Shinobi
+ClassesExcludedFromAWCRoll=LWOTC_Sharpshooter
+ClassesExcludedFromAWCRoll=LWOTC_Specialist
+ClassesExcludedFromAWCRoll=LWOTC_Gunner
+ClassesExcludedFromAWCRoll=LWOTC_Ranger
+ClassesExcludedFromAWCRoll=LWOTC_Grenadier
+ClassesExcludedFromAWCRoll=LWOTC_Technical

under [XComGame.CHHelpers] in XComGame.ini to prevent the game from adding a second row of XCOM abilities to the LW2 classes.

Due to using RandomAbilityDecks rather than regular XCOM abilities this version of the ini will give 7 XCOM abilities instead of 4, but unlike the previous ini, this one actually plays nice with I'm the Commander Here!, so you can use that to set the number back to 4.

Set up for use with I'm the Commander Here! is adding the lines

+ClassAndDeckNames=(Classname="LWOTC_Assault", Deckname="AssaultXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Shinobi", Deckname="ShinobiXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Sharpshooter", Deckname="SharpshooterXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Specialist", Deckname="SpecialistXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Gunner", Deckname="GunnerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Ranger", Deckname="RangerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Grenadier", Deckname="GrenadierXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Technical", Deckname="TechnicalXComAbilities")

under [ImTheCommanderHere.ImTheCommanderHere_Utilities] in XComImTheCommanderHere.ini
Veehementia  [developer] 29 Apr, 2019 @ 2:16am 
Originally posted by SoloCross:
Hey, just a heads up, I noticed I screwed up some parentheses in the ini I uploaded and the classes were not gaining any stats on promotion because of it. Fixed version here: https://pastebin.com/8AGV07P6

I also made a version that adds pistol perks as XCOM abilities instead... sorta. I used RandomAbilityDecks instead of TCPC and got them to work fine. That one is here: https://pastebin.com/9CQx5r7Y

This one needs a bit more set up tho, you have to add the lines

+ClassesExcludedFromAWCRoll=LWOTC_Assault
+ClassesExcludedFromAWCRoll=LWOTC_Shinobi
+ClassesExcludedFromAWCRoll=LWOTC_Sharpshooter
+ClassesExcludedFromAWCRoll=LWOTC_Specialist
+ClassesExcludedFromAWCRoll=LWOTC_Gunner
+ClassesExcludedFromAWCRoll=LWOTC_Ranger
+ClassesExcludedFromAWCRoll=LWOTC_Grenadier
+ClassesExcludedFromAWCRoll=LWOTC_Technical

under [XComGame.CHHelpers] in XComGame.ini to prevent the game from adding a second row of XCOM abilities to the LW2 classes.

Due to using RandomAbilityDecks rather than regular XCOM abilities this version of the ini will give 7 XCOM abilities instead of 4, but unlike the previous ini, this one actually plays nice with I'm the Commander Here!, so you can use that to set the number back to 4.

Set up for use with I'm the Commander Here! is adding the lines

+ClassAndDeckNames=(Classname="LWOTC_Assault", Deckname="AssaultXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Shinobi", Deckname="ShinobiXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Sharpshooter", Deckname="SharpshooterXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Specialist", Deckname="SpecialistXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Gunner", Deckname="GunnerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Ranger", Deckname="RangerXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Grenadier", Deckname="GrenadierXComAbilities")
+ClassAndDeckNames=(Classname="LWOTC_Technical", Deckname="TechnicalXComAbilities")

under [ImTheCommanderHere.ImTheCommanderHere_Utilities] in XComImTheCommanderHere.ini

Added this to the top, thanks again for your contribution!
Eko 2 May, 2019 @ 6:29am 
@SoloCross
Hi mate cheers for that....
i was wondering if you might lend me some advice...
I am wanting to make like a plugin / addon i guess for this awesome pistol slot mod..
I have a few questions if I may..

I want to Redo the 4 Vanilla Classes to compliment the pistol slot ...
Firstly the pistol item has pistol shot and pistol overwatch as part of the actual item ...
is this the case for all secondary items like sword slash .. gremlin aid protocol etc ???
like if any class equipped a gremlin would they get the 2 basic Specialist Squaddie Skills aid and intrusion Protocol ???

What i want to achieve is to remove the squaddie skills from all classes and have just 3 pistol skills in the squaddie row ...
with the first one free and the other 2 requiring spending ability points ...

i'm tired and my English is awful so I'm not sure if any of that made any sense
< >
Showing 1-15 of 19 comments
Per page: 1530 50