XCOM 2
237 평점
[WOTC] Open Class Weapon Restrictions Config
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
197.909 KB
2019년 5월 1일 오전 7시 10분
업데이트 노트 1개 (보기)
이 아이템을 사용하려면 DLC가 있어야 합니다.

다운로드 위해 구독하기
[WOTC] Open Class Weapon Restrictions Config

설명
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
atrislab 2025년 4월 5일 오후 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 :)
[EXD]✚Fox_pl✚ 2024년 2월 9일 오전 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  [작성자] 2023년 1월 11일 오전 8시 01분 
You're correct, it's not something you can do with this mod.
aivo 2023년 1월 11일 오전 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  [작성자] 2023년 1월 10일 오후 6시 37분 
Yeah, but it will not look good.
aivo 2023년 1월 10일 오후 2시 42분 
Used this mod to put shotgun to utility slot
https://steamcommunity.com/sharedfiles/filedetails/?id=2848089939
aivo 2023년 1월 10일 오후 2시 07분 
Would it be possible to add shotgun as secondary weapon?
Drake 2022년 12월 27일 오후 4시 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 2022년 11월 21일 오후 6시 15분 
Oh, thanks.
Iridar  [작성자] 2022년 11월 21일 오전 3시 42분 
It needs to be GrantWeaponType[0]="SMG"