XCOM 2
241 betyg
[WOTC] Open Class Weapon Restrictions Config
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
197.909 KB
1 maj, 2019 @ 7:10
1 ändringsnotis ( visa )
Du behöver DLC för att kunna använda denna artikel.

Abonnera för att ladda ner
[WOTC] Open Class Weapon Restrictions Config

Beskrivning
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.
100 kommentarer
atrislab 5 apr @ 12:12 
Hello there.
First: thank you for the mod, the work and the time.
Any chance to find a mod with the same philosophy for armors? For some reason mod classes can't wear spider suit or exo suit. Thanks :)
[Red Cross] ✚Fox_pl✚ 9 feb, 2024 @ 10:34 
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  [skapare] 11 jan, 2023 @ 8:01 
You're correct, it's not something you can do with this mod.
aivo 11 jan, 2023 @ 7:36 
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  [skapare] 10 jan, 2023 @ 18:37 
Yeah, but it will not look good.
aivo 10 jan, 2023 @ 14:42 
aivo 10 jan, 2023 @ 14:07 
Would it be possible to add shotgun as secondary weapon?
Drake 27 dec, 2022 @ 16:23 
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 @ 18:15 
Oh, thanks.
Iridar  [skapare] 21 nov, 2022 @ 3:42 
It needs to be GrantWeaponType[0]="SMG"