XCOM 2
Long War Perk Pack
Tapir 16 Aug, 2016 @ 5:27pm
Compatibility issues
I am currently working on a mod adding some extra functionality to existing weapons.
It inserts extra abilities to AssaultRifle_CV in X2DownloadableContentInfo_AbilityTest::OnPostTemplatesCreated()

My problem is that while this mod is active, my abilities don't appear on the soldiers in a normal campaign(neither newly started or loaded), but they do appear on them on generated test maps.
I couldn't find the cause in the PerkPack's source, could you point me in the right direction how to fix this?
The mod is practically dead before publishing if it's gonna be incompatible with any LW mods... :/
Last edited by Tapir; 16 Aug, 2016 @ 6:14pm
< >
Showing 1-1 of 1 comments
Tapir 16 Aug, 2016 @ 5:44pm 
static event OnPostTemplatesCreated()
{
local X2ItemTemplateManager ItemManager;
local X2ItemTemplate ItemTemplate;
local X2WeaponTemplate WeaponTemplate;
local name WeaponName;

ItemManager = class'X2ItemTemplateManager'.static.GetItemTemplateManager();

WeaponName = 'AssaultRifle_CV';
ItemTemplate = ItemManager.FindItemTemplate( WeaponName );
WeaponTemplate = X2WeaponTemplate( ItemTemplate );
WeaponTemplate.Abilities.AddItem('TestAbility');
}
< >
Showing 1-1 of 1 comments
Per page: 1530 50