Adding available weapons to Perk Pack Sharpshooter

Discussion of our XCOM 2 mods
Post Reply
Edd88
Posts: 5
Joined: Sun Feb 26, 2017 5:57 pm

Adding available weapons to Perk Pack Sharpshooter

Post by Edd88 »

Hello, and first of all thanks Pavonis Interactive for developing mods that make X2 even more enjoyable than it already was.

I am currently using the Perk Pack in a modded campaign, and trying to add rifles to available weapons for Sharpshooters, though without success. I have added the:

+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")

line to the sharpshooter weapon list in the Classdata.ini file from the Perk Pack mod, but it does not seem to work. Any modding beyond ini file editing goes over my head, but changes like this have been succesful for me for other custom classes in the past. Can anyone tell me what i'm missing? Or do i need to start a new campaign for this to work?
Deleting and regenerating config files did not solve this issue for me.

Thanks in advance.
User avatar
johnnylump
Site Admin
Posts: 1262
Joined: Wed Nov 11, 2015 4:12 am

Re: Adding available weapons to Perk Pack Sharpshooter

Post by johnnylump »

AFAIK that should work. Possibly you have to start a new campaign?
Edd88
Posts: 5
Joined: Sun Feb 26, 2017 5:57 pm

Re: Adding available weapons to Perk Pack Sharpshooter

Post by Edd88 »

Found a workaround that solved this issue for me.

One of the comments under the "rifles for all classes" Steam Workshop mod advised to add the following lines to that mod (which wasn't working for LW perk pack classes).

[LW_Sharpshooter X2SoldierClassTemplate]
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")

[LW_Grenadier X2SoldierClassTemplate]
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")

After this i could equip sharpshooters with rifles straight away.

Thanks for the quick reply regardless!
Post Reply