• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

How to add decapitation effect to the axe?

Xtrakicking

New member
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