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

Qestion about DamageModifier

Ashariel

Refugee
<append xpath="/entity_classes/entity_class[@name='playerMale']/effect_group">
        <passive_effect name="DamageModifier" operation="perc_add" value="1" tags="head"/>
    </append>
Hi! Is it possible to modify damage to other body parts as above without changing base damage? Like for leftleg, chest itc?

 
More than likely (never done it myself).  You should look at the items xml file for armor to see the tag for those bits and then just add it where you want to.

Also, with the code above, you are doubling headshot damage by players at all times.  If you look in the progression xml file, it shows how they do it based on leveling up attributes.

 
Thank you very much! I've done this: 

<append xpath="/entity_classes/entity_class[@name='playerMale']/effect_group">
        <passive_effect name="DamageModifier" operation="perc_add" value="10" tags="head"/>
        <passive_effect name="DamageModifier" operation="perc_add" value=".1" tags="chest"/>
        <passive_effect name="DamageModifier" operation="perc_add" value=".1" tags="hands"/>
        <passive_effect name="DamageModifier" operation="perc_add" value=".1" tags="legs"/>
        <passive_effect name="DamageModifier" operation="perc_add" value=".1" tags="feet"/>
    </append>
This work perfectly. All I need now is to add requirements for this to work only with zombies, i gues i can use tags somehow

<requirement tags="head,zombie,walker" />
Whats the proper way to do write this code??

------edit-------

after few more tests it looks like it's not working, only headshots dmg seems to multiply just fine. I've also tried that with no luck. 

<append xpath="/entity_classes/entity_class[@name='playerMale']/effect_group">
        <passive_effect name="DamageModifier" operation="perc_add" value="20" tags="head"/>
        <passive_effect name="DamageModifier" operation="perc_add" value=".1" tags="zombie"/>
    </append>

 
Last edited by a moderator:
Back
Top