This idea arises from the need to restrict certain items, such as weapons, to certain soldierType. This option would be incredibly useful in mods where soldier classes are actively used, such as Luke83's mod, OXC Factions. The use I intend to give them is that I want to specify certain types of weapons for Stormtrooper soldiers. In particular, submachine guns and machine pistols. That would prevent other soldierType from using weapons designed specifically for these classes, which would encourage their use.
I also intend to use it with the Medic class soldierType, which would use more specialized equipment (like field surgery kit or adrenaline syringes) than a simple medikit, which any soldier can use.
In another use, more focused on other mods, you could recreate the design of the XCOM EU2012 classes, assigning shotguns for the Assault class, precision rifles for the Sniper class, LMG for Support and more. IIRC, this has been a dream in the OXC community for a long time.
I hope it is not very complicated and that someone else, besides me, likes this idea. It would really be very useful in my project and in others that seek to divide soldiers into classes and give them their own weapons.
items:
- type: STR_LUGER_ARTILLERY
allowedsoldierType: STR_STORMTROOPER