XCOM 2
324 ratings
Mr Koval's GTS-only trainable classes
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
138.394 KB
8 Aug, 2018 @ 10:34am
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
Mr Koval's GTS-only trainable classes

Description
---------------------------------------------------------------------------------
INTRODUCTION
---------------------------------------------------------------------------------
A very simple mod that allows to make selected classes only trainable through the GTS and not obtainable through mission rewards or promotions.

---------------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------------
I was making this change for a bigger mod I'm attempting to create that, among other things, completely changes how XCOM classes are distributed. Since it's making a welcome change, I decided to publish it as a standalone.

So if you use mods that add custom soldier classes or you're creating your own (i.e. with Richard's Create Your Own Class Templates), you can play with their ini values. Or maybe you think the Specialist is useless and want to only be able to train them in GTS. For that, you have the values for core soldier classes exposed in the mod config.

---------------------------------------------------------------------------------
TECHNICAL DETAILS
---------------------------------------------------------------------------------
Overrides the "UIChooseClass" class, specifically the GetClasses() function that decides what classes are available for GTS training based on their NumInForcedDeck attribute. I wouldn't know, but I guess this shouldn't be a big deal that breaks any mods unless they also play with how classes are distributed. My full mod will expect no other major mechanics-related mods, so I was not considering listeners.

To use, one needs other mods that add classes and expose the "NumInDeck" and "NumInForcedDeck" variables through the "XcomClassData.ini" file.

General rules:

- If the NumInForcedDeck = 0, the class is unavailable for first-time promotions and unavailable in GTS
- If >0, it's available in GTS and as forced first-time promotions
- If <0, it's only available in the GTS

Useful cases:

- NumInForcedDeck=-1; NumInDeck=0 - class only trainable in GTS
- NumInForcedDeck=0; NumInDeck=0 - class normally unavailable (but in the game, so you can design a special building to train it I guess), disables the class for any other means
- NumInForcedDeck=1; NumInDeck=0 - only available once for first-time promotions and then through GTS
- NumInForcedDeck=0; NumInDeck>0 - only available through random promotions and not in GTS
- NumInForcedDeck=-1; NumInDeck>0 - available in GTS and through random promotions after first-time class pool is depleted
28 Comments
Medpac13 23 Jun @ 8:37pm 
Does anyone know of a mod that adds the 4 base classes back or at least allows you to get their GTS upgrades?
Zaku II (Alias WatcherZigzagoon) 9 Jun, 2022 @ 11:55am 
this appears to conflict with Project EXVENT: Playable ADVENT soldiers. I dare not try to run the game with both of those mods active at once. I am sorry.
philmakerguy 25 May, 2022 @ 8:32am 
Is anyone else having an issue where you can't train psi ops in the psi lab and can't rank any up with console commands?
Hargrim 4 Jul, 2020 @ 10:31am 
this is working some of the time and not. depends on the add on class I added. trying to troubleshoot this.
Hargrim 9 Jun, 2020 @ 2:16pm 
i changed the numbers to -1 and 0 cuz I want Biotics to only be GTS trainable. I'll tell you if it works.
Resh 15 Mar, 2020 @ 6:16pm 
@HotelCharliHill This is really handy if you have modded classes like Jedi, or Spartan IIs or something that are really powerful and may be silly if you get a bunch of them through random promotions. But it can also be handy if you think there should be less of a certain vanilla class as well. The example used in the description mentions specialists, if you think the other classes are more important than specialists then using this mod you can change the specialist class to only be trainable at GTS so you don't get tons of them from random promotion.
HotelCharliHill 5 Mar, 2020 @ 9:51pm 
Hi, I'm a smart fellow but not the smartest.... What exactly is the aim of this mod? "make selected classes only trainable through the GTS and not obtainable through mission rewards or promotions"

So to tailor my campaign I can make it so certain classes can't be "rewarded" after a mission or randomly through a promotion FORCING a soldier down a road or into a skill I didn't want for them? Interesting, but what are some examples of classes I WOULDN'T want soldiers to go down? Or what are some classes I'd want my soldiers to train as through the GTS without waiting for it to be randomly rewarded?

Thanks
Star¤Dagger 13 Aug, 2019 @ 2:26pm 
@DemogorgonWhite It is a mod that allows other mods like [WOTC] - K's Officer Class to function the way the author wants them to.
DemogorgonWhite 23 May, 2019 @ 1:54pm 
I think I am literally too stupid to understand how to use this mod :/
Eko 3 May, 2019 @ 2:56am 
So I have the Psionic Class mod..
and I want to only be able to train it in the GTS like your Officer class I set the NumInDeck=0
in the Psionic Class mod and it still promotes rookies to PSi ...??