XCOM 2
[WOTC] Open Class Weapon Restrictions Config
100 則留言
atrislab 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 :)
[Red Cross] ✚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://sp.zhabite.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"
Totsnuk 2022 年 11 月 21 日 上午 12:41 
I have it in the XcomWOTCOpenWeaponRestrictions.ini but it's not doing anything
Totsnuk 2022 年 11 月 21 日 上午 12:40 
Which INI file should I put this line into?
+GRANT_WEAPON=(AllowedWeaponType[0]="rifle", AllowedWeaponType[1]="shotgun", AllowedWeaponType[2]="bullpup", GrantWeaponType="SMG")
MarsToSirius 2022 年 8 月 14 日 上午 9:19 
Alas. I appreciate the timely response though.
Great little thing you've setup here regardless :steamthumbsup:
Iridar  [作者] 2022 年 8 月 14 日 上午 8:40 
@Spaceman Spiff
There's no easy way to do this.
MarsToSirius 2022 年 8 月 14 日 上午 7:25 
I'm looking to be able to swap a regular Templar's autopistol for a rifle, but apparently using SecondaryWeapon slot designation isn't working, and for obvious reasons I don't want to give up the Templar's Gauntlet for a rifle.

...It's also way past my bedtime -_-
Can you clue me into what I need to do in order to facilitate this? I need that sweet, sweet Psionic Overkill Disrupter Rifle action on my Templar.
Reiyn 2022 年 6 月 14 日 上午 5:24 
@GI JASON 170
Open this file
..\steamapps\workshop\content\268500\1728899282\Config\XComWOTCOpenWeaponRestrictions.ini

Then add these lines
+GRANT_WEAPON=(GrantWeaponType[0]="sword", Slot[0]=eInvSlot_SecondaryWeapon)
+GRANT_WEAPON=(GrantWeaponType[0]="combatknife", Slot[0]=eInvSlot_SecondaryWeapon)
GI JASON 170 2022 年 4 月 26 日 下午 7:03 
Can someone help me? I'm trying to make it so any class can use a sword or a combat knife, but I honestly don't know how to do that.
Havoc Squad 2022 年 4 月 15 日 上午 9:44 
as far as i know, at least for those classes i tries so far, "WeaponType="empty" " adds an empty weapon slot to all classes
i use the Commando-class mod from Alpha115 for, obviously, Republic Commando-characters. They finally get to use primary weapons only
Iridar  [作者] 2022 年 4 月 14 日 下午 10:13 
Primary Secondaries and True Primary Secondaries add an "empty secondary" you can use on specific soldiers.
Havoc Squad 2022 年 4 月 14 日 下午 2:58 
i'm curious if it's somehow possible to allow a class to have no secondary weapon at all. and don't get me wrong, i'm not talking about deleting "SlotType=eInvSlot_SecondaryWeapon" but rather something like "WeaponType="none" " or "WeaponType="empty" "
i've got some units with classes that would look better with no secondary at all and some unit with those classes who look good with secondary weapons
Zaku II (Alias WatcherZigzagoon) 2022 年 4 月 9 日 上午 5:36 
I see
Iridar  [作者] 2022 年 4 月 8 日 下午 11:36 
You can allow equipping primaries into secondary slot with or without this mod, but it won't work the way you think.
Zaku II (Alias WatcherZigzagoon) 2022 年 4 月 8 日 下午 6:33 
am I stupid to assume this thing will let me configure primaries to be selected for the Secondary slot of soldiers? Probably, but I thought I'd ask anyways
Christhebobcat 2021 年 11 月 23 日 上午 7:54 
can you make a video or a better explanation on how to work the file. my dumb brain has no idea if i have do it right.
Haerzog 2021 年 10 月 22 日 上午 11:52 
I didn't realize that they were part of the assault rifle category, but know that helped me dial in my problem to the Amalgamation classes mod. Turns out it reassigns the bolt caster to its own weapon category.
Iridar  [作者] 2021 年 10 月 21 日 上午 11:17 
@Haerzog
Without mods the boltcaster has the assault rifle weapon category, so it can be used by all classes that can use assault rifles - specialist and ranger. There are mods that change boltcasters' weapon category, though.
Haerzog 2021 年 10 月 21 日 上午 11:11 
Does the bolt caster have its own weapon type, named the way I have it below? I havent been able to find any information on the textual weapon types for the Alien Hunter DLC weaponry.
Iridar  [作者] 2021 年 10 月 20 日 上午 11:39 
@Haerzog
I don't know what you want, but that's what you could do.
Haerzog 2021 年 10 月 20 日 上午 11:32 
@Iridar alright, and suppose I want to conditionally tell the game that I want every user of the assault rifle to be able to use the bolt caster?
Iridar  [作者] 2021 年 10 月 19 日 下午 10:06 
If you want to allow using a weapon category unconditionally, refer to soldier class configuration: (AllowedWeapons)
https://www.reddit.com/r/xcom2mods/wiki/wotc_modding/soldier_classes/#wiki_xcomclassdata.ini
Iridar  [作者] 2021 年 10 月 19 日 下午 10:04 
@Haerzog
No, that's not how this mod works, its purpose is to allow using weapon categories based on other weapon categories available to the soldier class, it's meant to be conditional.
Haerzog 2021 年 10 月 19 日 下午 9:00 
Have a question about getting the Bolt Caster to work with alternative classes. I find that none of the classes in my lwotc game have access to the bolt caster. Does the following line fix that? Cause it isn't doing so in my game.

+GRANT_WEAPON=(GrantWeaponType[0]="bolt_caster", slot[0]=eInvSlot_PrimaryWeapon)
SnowPirate 2021 年 3 月 6 日 上午 10:11 
So i got this mod to work once and then it broke my game so how, mustve been something i did a while ago but now i have no idea how to do it again, right now i have changed the ClassData.ini file to what i want but my question is am i not typing the code in right? for example AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle") that should be it right? or do i need the other ini files as well
Iridar  [作者] 2021 年 3 月 6 日 上午 6:17 
@Danzy|Dab on Death™
Normally only primary and secondary weapons are affected by soldier class weapon restrictions. There's no way to do what you want to do anyway, because LWOTC pistol slot is hardcoded to only accept pistols.
Danzy 2021 年 3 月 6 日 上午 2:07 
Running LWOTC, I'm trying to add throwing knife to their dedicated pistol slot, will this command alone work?

+GRANT_WEAPON=(GrantWeaponType[0]="throwingknife", Slot[0]=eInvSlot_Pistol)

Mizuki 水城 泰士 2020 年 9 月 7 日 下午 12:36 
Sorry for late response, had to go out. Anyway, it worked, thank you!
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 7:53 
Found it. I'll test it in a minute.
Iridar  [作者] 2020 年 9 月 7 日 上午 7:52 
@Taishi
Finding the folder of the mod you need is a pretty common thing to do, you can find the how-to on google.
Iridar  [作者] 2020 年 9 月 7 日 上午 7:38 
@Taishi
No, this is the wrong way and wrong place to do it. Locate the XComClassData.ini of the mod that adds your medic class.
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 7:27 
I've checked the one in \Documents\My Games\XCOM2 War of the Chosen\XComGame\Config and it shows nothing about the class I wish to modify. I tried adding new field for "SoldierClasses=Medic" with [Medic X2SoldierClassTemplate]
+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="shield") as I assumed that was it and it didn't work.
Iridar  [作者] 2020 年 9 月 7 日 上午 6:38 
@Taishi
You have to locate the XComClassData.ini in the folder of the mod that adds your Field Medic class and add the new entry near other +AllowedWeapons entries.
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 5:44 
Ahh... ok thanks, that I did not know. I assumed as much but still don't now what the "appropriate place" would be since the Field Medic I use is pretty much a mod class which doesn't seem to show up in that list.
Iridar  [作者] 2020 年 9 月 7 日 上午 5:40 
@Taishi
What kind of weapons can be used by which soldier classes is entirely configurable even without this mod. All you need to do is add this line:

+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="shield")

In the appropriate place of the XComClassData.ini of the soldier class mods you're using.
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 5:25 
Guess I misunderstood it's purpose then.. Back to the drawing board I suppose.
Iridar  [作者] 2020 年 9 月 7 日 上午 5:22 
@Taishi
This is just for reference to let you know the weapon category of ballistic shields.
Granting access to a certain weapon category to all classes is not something this mod can do. It was made to grant access to a certain weapon category based on other weapon categories available to soldiers. For example, it can give access to assault rifles to all sodliers who can use cannons.
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 5:18 
ok. Trying to figure out how to add shield to all classes, or at least my custom medic. I removed from
=== WOTC Ballistic Shields mod by Claus ===
shield

Is this right or wrong? I'm a little confused..
Iridar  [作者] 2020 年 9 月 7 日 上午 5:16 
@Taishi
Yes, lines that have a semicolon at the start are disabled. Removing the semicolon enables them.
Mizuki 水城 泰士 2020 年 9 月 7 日 上午 5:14 
Correct me if I'm wrong but removing ; will enable features in the config file right? I assumed this and I've had an issue loading the mod after doing so :-/
_b1ack0ut 2020 年 5 月 7 日 上午 6:26 
Ah, problem is that dedicated pistol slots already conflicts with a few mods I use already, and lowkey I have no idea how to go about configuring USS to work with three tiered cosmetics, I'm extraordinarily bad at this lol
Iridar  [作者] 2020 年 5 月 7 日 上午 6:23 
@_b1ack0ut
You could try configuring USS or USSE to add the utility slot versions of the Three Tiered Cosmetics. If that doesn't work, you can use Dedicated Pistol Slot mod to equip secondary pistols in that slot.