lynx54321 Posted June 15, 2016 Share Posted June 15, 2016 Hello I've succeeded in adding a tier 1 Marksman Rifle to the game which is basically the normal assault rifle with it's model altered to include a different stock and a scope. I've also set it so it counts as a sniper rifle. This seems to work fine... However I attempted to add a tier 2 version by cloning the weapons entry in X2Item_MarksmanRifle_Weapon but now when trying to use the mod neither a tier 2 nor the original tier 1 weapon are in my soldiers inventories. Any advice? Link to comment Share on other sites More sharing options...
E3245 Posted June 15, 2016 Share Posted June 15, 2016 Hello I've succeeded in adding a tier 1 Marksman Rifle to the game which is basically the normal assault rifle with it's model altered to include a different stock and a scope. I've also set it so it counts as a sniper rifle. This seems to work fine... However I attempted to add a tier 2 version by cloning the weapons entry in X2Item_MarksmanRifle_Weapon but now when trying to use the mod neither a tier 2 nor the original tier 1 weapon are in my soldiers inventories. Any advice?You need to make the Tier 2 and 3 version have a different template name, with different INI names (if you externalized them to an INI). You also have to edit the X2DownloadableContentInfo to add that weapon as well, which is NOT recommended, since you would get the best weapon way too early. A better and more balanced way would be looking over X2Item_Default_Schematics.uc (I think that's what it is called), and adapting that to your weapon mod. Link to comment Share on other sites More sharing options...
lynx54321 Posted June 16, 2016 Author Share Posted June 16, 2016 (edited) Ok great idea I've just added schematics for the upgraded tiers. I'm testing and though the schematics appear in game and the upgraded weapons are displayed on them and can be built but the actual weapon in my soldiers inventory doesn't change. Any ideas? EDIT: Sorted it, I'd missed a line in the weapons file. Next question: I've worked out how to add new stuff but how can I use the modbuddy to alter existing items? Edited June 16, 2016 by lynx54321 Link to comment Share on other sites More sharing options...
E3245 Posted June 17, 2016 Share Posted June 17, 2016 Ok great idea I've just added schematics for the upgraded tiers. I'm testing and though the schematics appear in game and the upgraded weapons are displayed on them and can be built but the actual weapon in my soldiers inventory doesn't change. Any ideas? EDIT: Sorted it, I'd missed a line in the weapons file. Next question: I've worked out how to add new stuff but how can I use the modbuddy to alter existing items?Like the ConvAssaultRifle or the DLC weapons? That would require using OnPostCreatedTemplate (I think that is what it's called). Don't ask me, I don't know how to do that yet. Someone with more experience would be able to answer that. Link to comment Share on other sites More sharing options...
Recommended Posts