XCOM 2
True Primary Secondaries [BETA]
 This topic has been pinned, so it's probably important
RustyDios 5 Dec, 2021 @ 6:19pm
For Class Mod Authors
If you wish to use a primary secondary (Pistol, Sword) in your modded class, the loadout entry still requires an "_Primary" postfix, despite the actual template no longer existing.

eg: for a dual-pistol setup;
[XComGame.X2ItemTemplateManager] +Loadouts=(LoadoutName="My_Sqd_Loadout", Items[0]=(Item="Pistol_CV"), Items[1]=(Item="Pistol_CV"))
will bug out and you will end up still having the "rookie rifle"....
however
[XComGame.X2ItemTemplateManager] +Loadouts=(LoadoutName="My_Sqd_Loadout", Items[0]=(Item="Pistol_CV_Primary"), Items[1]=(Item="Pistol_CV"))
will work correctly, despite the actual item template of "Pistol_CV_Primary" being completely non-existent in your game.. and the 'real' item being used is indeed a "Pistol_CV"

.. yes, took me a long time to note this distinction.
Last edited by RustyDios; 5 Dec, 2021 @ 6:22pm