XCOM 2
Any Class Any Weapon
69 Comments
Jhonny G 29 Jun @ 3:06am 
Great mod. Works very well with Tree Tier Weapons and SMG Pack.
SlimShady47 28 Mar, 2022 @ 4:18pm 
For anyone who uses MacOS and wants to edit weapons for Skirmisher, Reaper, and Templar.

Open Terminal app. Then types this command:
cd ~/Library/Application Support/Steam/steamapps/workshop/content/268500/617733366/Config
(Note that 268500 and 617733366 might be different on your local folder. You can search for "AnyClassAnyWeapon.XComMod" file via the search bar on top-right.)

Then this command:
open .

Then Finder should show the folder. You need to edit this file "XComClassData.ini".

For example, adding this allow Reaper to use normal snipers and Vector snipers.

[Reaper X2SoldierClassTemplate]
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="sniper_rifle")
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="vektor_rifle")


The list of possible weapon codes are in here.
/Library/Application Support/Steam/steamapps/common/XCOM 2/XCOM2Data/xcom2-warofthechosen/xcomgame/config/defaultgamedata.ini
Comrade Pawington 13 Dec, 2021 @ 6:57pm 
"Xcom 2 mods can't see one another, and if they can't see one another they certainly can't edit one another."

i have a mod called ballistic shields that is actually changed tons by another mod, and i think their by different ppl
B33RBaron931 13 Jun, 2021 @ 11:11am 
WOTC version?
☦Agent 48☦ 31 Dec, 2020 @ 7:51am 
this SUU-(caugh) SUUOOLS
shardinhand 21 Apr, 2020 @ 9:22pm 
Any Class Any Weapon (WOTC) version?
_b1ack0ut 5 Jan, 2020 @ 10:50am 
this isn't working at all for any weapons, or any classes. I don't have mods that add weapons, or classes, and this isn't working for me
Stupei 21 Aug, 2019 @ 3:50pm 
Doesnt work with secondary weapons
Zacharius Sneed 23 Nov, 2018 @ 12:13pm 
Doesn't work for mod weapons
Zacharius Sneed 5 May, 2018 @ 8:18am 
Can you do this but for class specific weapons, like giving a grenadier a machete?
PIИK 2 Feb, 2018 @ 2:25pm 
I would like to know if this works with long war 2.
Booba 19 Jan, 2018 @ 5:42am 
I've always hated the Grenadier class. The concept of a soldier running around with a heavy weapon, a special weapon and a bunch of extra armor simply displeases me. Being able to toss aside that ridiculous gatling gun in favor of a simple assault rifle makes me almost happy. XCOM 2 still sucks but this mod makes it not as bad. Great job!
Lavina 16 Sep, 2017 @ 1:07am 
dose it work with dlcs like shens last gift?
jojournalist88 13 Sep, 2017 @ 9:32pm 
I should also add that I've already located the Long War 2 file at
\Steam\SteamApps\workshop\content\268500\844674609
as dictated here
http://ufopaedia.org/index.php/Customizing_LW2
but there is no config folder present. 844674609 appears to be an empty folder
jojournalist88 13 Sep, 2017 @ 9:24pm 
I know everyone is all aboard the WoTC train, but I'm just starting to play with Long War 2. Does this mod work for the classes that are in LW2? IE Technical, shinobi, specialist, etc? If not, where would I edit the long war 2 classes manually as per directions on this mod page?

I'm making a Samus Aron character that I would like to be able to use the technical class w/ gauntlet and a minigun. I'm also trying to use the secondary weapons as utility items so i can give her a grenade launcher. I plan on playing on harder difficulties (and with a better advent mod) to balance out how OP this build could be, and would like to build the character as true to the original Samus as possible.
REDACTED 6 Sep, 2017 @ 11:11am 
Ive been using most weapons on most classes including a rifle on the templar so that might just be a problem for some
EdofLegend 4 Sep, 2017 @ 4:29pm 
Important note: Do not modify the weapon selection for WotC classes. Changing the loadout for those classes can crash your game. The Templar class is a guaranteed crash on the weapon selection screen. The standard classes appear to be fine, however, and can use the new weapons (Bullpup, Vektor, Auto-Pistol) with no problem.
dereality 3 Sep, 2017 @ 1:24am 
Will try to make messy adaptations to my files like REDACTED suggested, but an official, neat and clean version of this for WOTC would be amazing.
REDACTED 2 Sep, 2017 @ 12:51pm 
You can manually change what weapons classes can get for WoTC

C:\Program Files (x86)\Steam\steamapps\common\XCOM 2\XCom2-WarOfTheChosen\XComGame\Config\DefaultClassData.ini

Just add a new line under the line for default weapons

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

But change the rifle bit to whatever weapon you want

Hope this helps some people
Blade45 1 Sep, 2017 @ 6:00pm 
Fingers crossed, though it's been quite some time since the mod was released so I temper expectations
Vyce 31 Aug, 2017 @ 3:24pm 
I very, very enthusiastically second the motion for a WOTC counterpart. I miss the variation and fun this mod provides. Truly one of my favourites.
frankiemojica01 29 Aug, 2017 @ 12:58am 
needs update for WOTC
EdofLegend 26 Aug, 2017 @ 3:20pm 
Will you be updating this mod to include the weapons from WoTC? The idea of a whole squad rapid-firing with the bullpup would be evil.
The Gaming Archaeologist 26 Jul, 2017 @ 2:24am 
Since you mentioned you'd need to make a whole new thing for DLC weapons, what about giving us a close like above as I assume it's possible to say something like:
AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="Bolt") or whatever the code might be as I'd like to allow my viper team to use boltcasters which makes them quite deadly.
techlord 28 May, 2017 @ 8:13pm 
It's easy enough to edit find the XcomClassData.ini
RudytheDominator 22 Jan, 2017 @ 11:50am 
can you do this for longwar?
JosKer 18 Jul, 2016 @ 7:55pm 
Someone upthread asked about the SMG mod and it does work. The SMG looks though the vanilla .ini and adds an SMG to any class that can equip an assault rifle. Since this mod edits the .ini to allow every base class to equip an assault rifle both mods stack and every class can use the SMG.
PROPHYZ 16 Jul, 2016 @ 8:35pm 
Maybe get a similar effect for secondary weapons into the mix too. ?? There is a mod out for it by grimy - search
geoterm 8 Jul, 2016 @ 5:26am 
I second the any secondary weapon for everyone since that'll make it so training roulette specialists aren't useless.

Good work here though, keep up the modding!
Wintermist 7 Jul, 2016 @ 10:27am 
Would you be up for making a separate version that does include the DLC? :D
The Iron Rose  [author] 26 Jun, 2016 @ 8:06pm 
No. I cannot, because it'd break compatibility for those people without the dlc.
Pvt.Joker 26 Jun, 2016 @ 4:47pm 
can you do this for the weapons in the dlc ?
/!!!!!!!!!!!!!!! 23 Mar, 2016 @ 10:48am 
Really love this Mod! Thanks!!
The Iron Rose  [author] 17 Mar, 2016 @ 4:42am 
I've added a long explanation of why this mod cannot support custom classes to the description.
Carnack Ketral 14 Mar, 2016 @ 11:09pm 
I would like to see this expand to encompass custom classes as well. Maybe get a similar effect for secondary weapons into the mix too.
madseabassn 5 Mar, 2016 @ 11:20pm 
Is this going to be updated for custom classes to get all weapons as well? Just thought I would ask; I think it would make it a lot more interesting.
HandyVac 5 Mar, 2016 @ 3:04pm 
My favourite mod so far. :)
madseabassn 3 Mar, 2016 @ 1:42am 
I would really like to see this mod expand; I've got neopolitan, non-vanilla custom combinations for my game that I'd really like to try out, like a Super Soldier with a DMR, or an Assassin with a Cannon.
KEPETZ 2 Mar, 2016 @ 12:46am 
would it be dumb to make a new primary weapon that is a pistol rather than trying to force a secondary weapon into a primary weapon slot?
Mulqueeny 29 Feb, 2016 @ 4:04am 
Does this allow pistol as secondary for any class or is it just primary weapons that are effected?
purry1977 22 Feb, 2016 @ 2:48pm 
how to primary weapon pistol...
Arkan 20 Feb, 2016 @ 10:19am 
Very Nice! Thanks for the Mod! :csgohelmet:
Zorbakaq 17 Feb, 2016 @ 9:57pm 
I was wondering how to make it where all of my non-vanilla classes(Added/Moded Classes) able to wield all weapons. I don't know really where to look to change them or how to change them once I found them to be honest.
Insufferable Smartypants 13 Feb, 2016 @ 1:18pm 
Any possibility that we might see cross-compatibility with new mod classes like the Infantryman and the Assassin?
Mr. Californication 12 Feb, 2016 @ 4:01pm 
Pistol as primary?
Kinsay 11 Feb, 2016 @ 11:44am 
Thanks
Soul Reaper 11 Feb, 2016 @ 10:30am 
@Scorpiovaeden I would love that too, i do better with my pistol than sniper most of the time. The fanfire and faceoff abilities are awesome.
Scorpiova 9 Feb, 2016 @ 4:25pm 
Any chance to add pisols to primary weapons? In particular for the snipers who are specced as Gunslingers?
The Iron Rose  [author] 9 Feb, 2016 @ 10:42am 
@Rodtaz I don't have an OSX computer so unfortunately I can't bugtest for you... All I can say is make sure the mod is enabled in the launcher?
Rodtaz 9 Feb, 2016 @ 10:30am 
Great Mod, but unfortunately it is not working on a Mac!