• 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.

How to add decapitation effect to the axe?

Xtrakicking

Refugee
Early Backer
I've been trying to figure it out in the xml files, but I didn't find the way to do it. Basically I just want to make it so the iron axe has the ability to decapitate zombies heads and limbs like the machete does. Would it be possible?

 
I just quickly wrote this, so it isnt tested, but it should work:

Edit: Just tested it with a Bone Knife and it works for me (for testing on a bone knife I changed "meleeToolAxeT1IronFireaxe" to "meleeWpnBladeT0BoneKnife")

your_mod/config/items.xml

Code:
<config>
<!-- Add Decapitation chance for Iron Axe / Fireaxe -->
  <append xpath="/items/item[@name='meleeToolAxeT1IronFireaxe']">
    <effect_group>
      <passive_effect name="DismemberChance" operation="base_add" value="90"/>
    </effect_group>
  </append>
</config>
 
Last edited by a moderator:
Back
Top