XCOM 2

XCOM 2

True Primary Secondaries [BETA]
 Toto téma bylo přilepeno, takže je nejspíš důležité
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.
Naposledy upravil RustyDios; 5. pro. 2021 v 18.22