XCOM 2
225 ratings
[WOTC] Open Class Weapon Restrictions Config
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
197.909 KB
1 May, 2019 @ 7:10am
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Open Class Weapon Restrictions Config

Description
This mod contains the configuration file for [WOTC] Open Class Weapon Restrictions.
..\steamapps\workshop\content\268500\1728899282\Config\XComWOTCOpenWeaponRestrictions.ini
Additionally, this mod also contains XComClassData.ini, which can be used to change allowed equipment for any individual class. To be clear, you don't need this mod to do that, and any XComClassData.ini in any other mod can be used for the same purpose just as well, this is just for your convenience.

Using a separate mod to configure OCWR is more convenient, since any updates done to OCWR would reset your configuration.

THIS mod will never be updated, so it should be safe to store your OCWR configuration without making backups every 5 minutes. I still, of course, recommend to make backups in case you need to reinstall XCOM 2 or whatnot.

HOW OCWR WORKS

The mod pulls information about all classes, and then provides access to additional weapon types, looking at what weapon types are already available to the class.

You specify one or several weapon types that are already available to a class, and one or several weapon types you want to grant the access to. If a class can use at least one of the allowed weapons, OCWR will grant them access to all specified weapons.

For example:
+GRANT_WEAPON=(AllowedWeaponType[0]="grenade_launcher", GrantWeaponType[0]="rifle", Slot[0]=eInvSlot_PrimaryWeapon)]
This configuration will allow any class that can use Grenade Launchers to also use an Assault Rifle in their primary weapon slot, which is useful if you use my Underbarrel Attachments mod.
If you don't specify the Slot, then the new weapon type will be open for the same slot. For example:
+GRANT_WEAPON=(AllowedWeaponType[0]="sword", GrantWeaponType[0]="combatknife")
This allows any class that uses a Sword to also use a LW2 Combat Knife in the same slot.
Finally, if you don't specify the Allowed Weapon, then the new weapon type will be open for ALL classes. For example:
+GRANT_WEAPON=(GrantWeaponType[0]="bullpup", Slot[0]=eInvSlot_PrimaryWeapon)
You do have to specify a Slot in that case.

KNOWN ISSUES

Without additional mods that change that, Pistols do not have Standard Pistol Shot ability. It is instead a Squaddie Perk for Sharpshooters. So if you want to allow non-Sharpshooter classes to use Pistols, you need to add the Pistol Shot ability to Pistols, or the other classes will be able to only take Overwatch with Pistols.

There are many mods that (can) address this issue, including, but not limited to, Pistols Get Pistol Shot, Autopistol Overhaul, Dedicated Pistol Slot, Primary Secondaries and Weapon Skin Replacer.

Swords suffer from the same issue. They are missing the Sword Slash ability, which is the Ranger's Squaddie perk.

Autopistols, however, do not have this issue.
99 Comments
[EXD] Fox_pl 9 Feb @ 10:34am 
Is there any way to give ripjack for reapers? I wrote this, and it doesn't work:
[Reaper X2SoldierClassTemplate]
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="wristblade")
Iridar  [author] 11 Jan, 2023 @ 8:01am 
You're correct, it's not something you can do with this mod.
aivo 11 Jan, 2023 @ 7:36am 
True it does not look very good (shotgun hanging in front) but it gets the job done.
I have this emotions with pistols: they are bad :)
Could there be an option to make myself a secondary weapon and copy from Shotgun. I guess it not that easy as you have to specify gun placement also and which animations to use.
Iridar  [author] 10 Jan, 2023 @ 6:37pm 
Yeah, but it will not look good.
aivo 10 Jan, 2023 @ 2:42pm 
Used this mod to put shotgun to utility slot
https://steamproxy.net/sharedfiles/filedetails/?id=2848089939
aivo 10 Jan, 2023 @ 2:07pm 
Would it be possible to add shotgun as secondary weapon?
Drake 27 Dec, 2022 @ 4:23pm 
can this mod be used with the ballistics shield mod? also im a bit lost as where can i change some of the things as i want any class to use any weapon.
Totsnuk 21 Nov, 2022 @ 6:15pm 
Oh, thanks.
Iridar  [author] 21 Nov, 2022 @ 3:42am 
It needs to be GrantWeaponType[0]="SMG"
Totsnuk 21 Nov, 2022 @ 12:41am 
I have it in the XcomWOTCOpenWeaponRestrictions.ini but it's not doing anything