XCOM 2
[WOTC] Open Class Weapon Restrictions Config
102 kommentarer
Dragon32 16. okt. kl. 6:41 
@Stray952
Because this is so powerful is why it's not just an enable it mod. What are you trying to get it to do?
Stray952 15. okt. kl. 18:08 
Despite copying and pasting the example commands into the config file where "put your commands here" I can't get any changes to manifest into the game. This might just be above my level.

Does anyone know if there is a mod that just ... does what this one can do when configured?
atrislab 5. apr. kl. 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 kl. 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  [ophavsmand] 11. jan. 2023 kl. 8:01 
You're correct, it's not something you can do with this mod.
aivo 11. jan. 2023 kl. 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  [ophavsmand] 10. jan. 2023 kl. 18:37 
Yeah, but it will not look good.
aivo 10. jan. 2023 kl. 14:42 
Used this mod to put shotgun to utility slot
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2848089939
aivo 10. jan. 2023 kl. 14:07 
Would it be possible to add shotgun as secondary weapon?
Drake 27. dec. 2022 kl. 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 kl. 18:15 
Oh, thanks.
Iridar  [ophavsmand] 21. nov. 2022 kl. 3:42 
It needs to be GrantWeaponType[0]="SMG"
Totsnuk 21. nov. 2022 kl. 0:41 
I have it in the XcomWOTCOpenWeaponRestrictions.ini but it's not doing anything
Totsnuk 21. nov. 2022 kl. 0:40 
Which INI file should I put this line into?
+GRANT_WEAPON=(AllowedWeaponType[0]="rifle", AllowedWeaponType[1]="shotgun", AllowedWeaponType[2]="bullpup", GrantWeaponType="SMG")
MarsToSirius 14. aug. 2022 kl. 9:19 
Alas. I appreciate the timely response though.
Great little thing you've setup here regardless :steamthumbsup:
Iridar  [ophavsmand] 14. aug. 2022 kl. 8:40 
@Spaceman Spiff
There's no easy way to do this.
MarsToSirius 14. aug. 2022 kl. 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 14. juni 2022 kl. 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 26. apr. 2022 kl. 19: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 15. apr. 2022 kl. 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  [ophavsmand] 14. apr. 2022 kl. 22:13 
Primary Secondaries and True Primary Secondaries add an "empty secondary" you can use on specific soldiers.
Havoc Squad 14. apr. 2022 kl. 14: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) 9. apr. 2022 kl. 5:36 
I see
Iridar  [ophavsmand] 8. apr. 2022 kl. 23: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) 8. apr. 2022 kl. 18: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 23. nov. 2021 kl. 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 22. okt. 2021 kl. 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  [ophavsmand] 21. okt. 2021 kl. 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 21. okt. 2021 kl. 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  [ophavsmand] 20. okt. 2021 kl. 11:39 
@Haerzog
I don't know what you want, but that's what you could do.
Haerzog 20. okt. 2021 kl. 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  [ophavsmand] 19. okt. 2021 kl. 22: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  [ophavsmand] 19. okt. 2021 kl. 22: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 19. okt. 2021 kl. 21: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 6. mar. 2021 kl. 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  [ophavsmand] 6. mar. 2021 kl. 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 6. mar. 2021 kl. 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 水城 泰士 7. sep. 2020 kl. 12:36 
Sorry for late response, had to go out. Anyway, it worked, thank you!
Mizuki 水城 泰士 7. sep. 2020 kl. 7:53 
Found it. I'll test it in a minute.
Iridar  [ophavsmand] 7. sep. 2020 kl. 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  [ophavsmand] 7. sep. 2020 kl. 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 水城 泰士 7. sep. 2020 kl. 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  [ophavsmand] 7. sep. 2020 kl. 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 水城 泰士 7. sep. 2020 kl. 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  [ophavsmand] 7. sep. 2020 kl. 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 水城 泰士 7. sep. 2020 kl. 5:25 
Guess I misunderstood it's purpose then.. Back to the drawing board I suppose.
Iridar  [ophavsmand] 7. sep. 2020 kl. 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 水城 泰士 7. sep. 2020 kl. 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  [ophavsmand] 7. sep. 2020 kl. 5:16 
@Taishi
Yes, lines that have a semicolon at the start are disabled. Removing the semicolon enables them.
Mizuki 水城 泰士 7. sep. 2020 kl. 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 :-/