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

Can't get Penetrator to work with Arrows & Bolts

Liazelle

New member
Hi all - I'm trying to make my first-ever mod. Essentially, I'm just trying to make Steel Arrows and Steel Bolts work with the Penetrator perk. I followed a tutorial, thought I understood, apparently I didn't since it doesn't seem to work. I yoinked the attributes from other AP ammo and adapted the values (EntityPenetrationCount's tag to Archery and a higher value for dTargetPenetration). Like those other ammo types, I'm trying to add the new two attributes into the effect_group as I see it working for the other ammo.

My items.xml file is pretty short, and reads thus:

<penetratarchery>
<!-- Steel Arrows gain Penetration -->
<append xpath="/items/item[@name='ammoArrowSteelAP']/effect_group">
<passive_effect name="EntityPenetrationCount" operation="base_set" value="1" tags="perkArchery"/>
<display_value name="dTargetPenetration" value="2"/>
</append>

<!-- Steel Bolts gain Penetration -->
<append xpath="/items/item[@name='ammoCrossbowBoltSteelAP']/effect_group">
<passive_effect name="EntityPenetrationCount" operation="base_set" value="1" tags="perkArchery"/>
<display_value name="dTargetPenetration" value="2"/>
</append>

<set xpath="progression/perks/perk[@name='perkPenetrator']/effect_group/passive_effect[@name=EntityPenetrationCount]/@tags">"perkDeadEye,perkArchery"</set>

</penetratarchery>




However when I pop into a Creative world, my Steel Arrows aren't penetrating zombies. Any help for a newbie?

 
Last edited by a moderator:
I haven't messed with it on projectiles, but if I had to guess it won't work with things like arrows and bolts. Bullets are just raycasts, but bolts and arrows are actual projectiles, and they stick in things they hit. So they likely won't go through multiple things as they will just get stuck in the first thing they collide with, or break completely.

 
Man I hope not, but that does make sense.

Small followup, I moved that last <set/> into a new file called progression.xml, which would only make sense in retrospect, to no change.

 
Back
Top