Jump to content

Question regarding to armor modding


michaellsc95

Recommended Posts

So i decided to mod a armor using a Kevlar template but include abilities from a light plated armor in X2Item class


Then, i modify the ability in my own X2Ability Class.


Now the stats changed with the armor icon displayed correctly, however the armor the soldier wearing disappeared.


Whats left is only the head, arm , weapon and legs are showing up in the model.


Help



(BTW, i wish i can refrence other people's Source code and cross reference to see if i did something stupid, the long war smg mod is a good example for me to mod the sniper rifle. But since the armor mods are quite less and even if there is, the source code has been compiled and i can not really do anything on it. Documentation did not really say anything on how to do lots of stuff, and there is not enough tutorials in the internet, i think the mod dev should start doing tutorials either in an article or a video, or documentation)


Link to comment
Share on other sites

I never created new armors, just new props, but my understanding is that Props are "bound" to ArmorTemplates, so if you created a new ArmorTemplate called "Poop", but didnt added any new entries on content.ini for props to use ArmorTemplate "Poop", thats what you should get, no armor prop available:

BodyPartTemplateConfig=(PartType="Torso", TemplateName="CnvMed_Std_A_M", ArchetypeName="SldCnvMed_Std_GD.ARC_SldCnvMed_Std_Torsos_A_M", Gender=eGender_Male, bVeteran=false,  ArmorTemplate="KevlarArmor", CharacterTemplate="Soldier")

Where is says ArmorTemplate="KevlarArmor", it should say whatever you called your template

Link to comment
Share on other sites

add a XComContent.ini, and add a line like this (note the plus sign)

;TemplateName must be Unique!
;Torso Parts can only have one SetNames. Anything more than 0, the code will ignore
;Arms and Legs can have several SetNames ([0], [1], [2], etc). SetNames allow you to specify that certain Arms/Legs parts, can only be used with specific Torso Parts, within the same ArmorTemplate/Gender

+BodyPartTemplateConfig=(PartType="Torso", DLCName="YourModName" TemplateName="Template_Name", ArchetypeName="BlahBlahUpk.ARC_BlahBlahArchetype", Gender=eGender_Male, bVeteran=false,  ArmorTemplate="YourArmorTemplate", CharacterTemplate="Soldier", SetNames[0]="Whatever")
Edited by Hyperplexed
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...