• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Extending item is not working

I'm working on another version of the MP5 and am trying to extend the one already in-game so I need only specify the new mesh file when it is complete. However, it isn't copying attributes when extending and preventing the new one from loading. Not sure what I am doing wrong.
XML:
<DHTA_MP5SD>
    <append xpath="/items">
        <item name="DHTA_MP5SD" extends="gunHandgunT3SMG5">
            <effect_group name="DHTA_MP5SD" extends="gunHandgunT3SMG5">
                <passive_effect name="MaxRange" operation="base_set" value="50" tags="perkGunslinger,9mmGun"/>
                <passive_effect name="DamageFalloffRange" operation="base_set" value="28" tags="perkGunslinger,9mmGun"/>
                <passive_effect name="EntityDamage" operation="base_add" value="15" tags="perkGunslinger"/>
            </effect_group>
        </item>
    </append>
</DHTA_MP5SD>
It wants me to specify the mesh file. It should inherit that. If I specify it, it asks for a material. Why isn't it inheriting the base data?
 
There are things that don't "extend". Tags, drop events, and I believe effect_groups are among those. But I'm not an expert, and perhaps there is a way. I end up repeating those items when I extend something.
 
If there is I'd like to know too. There's a comment in the xml about the tags property, and the creativemode property, but that's the only documentation I've found that I recall. I asked here a year ago and never got any answers. Maybe someone else can add to this.
 
Back
Top