Hey, recently I got some custom ammo in the game working that has a small chance to apply a wrapper buff around `buffShock` with a small chance to spread to nearby enemies. However, I have a few questions to get it to behave the way I want.
The buff seems to always apply for 5s.
The buff seems to always spread regardless of the `<requirement name="RandomRoll" />` placed within the `<triggered_effect></triggered_effect>`
I cannot seem to get `Shock Duration` to show in the UI when viewing the ammo type in inventory or on the workbench.
Is there a way to make the damage scale off the Eletrocutioner skill?
The `<effect_group>` in each ammo type in `Config/items.xml`
<effect_groupname="shockingAmmo"tiered="false"><!--@todo This appears to be causing buff to not work --><!--<passive_effect name="EntityDamage" operation="perc_add" value=".15,.95" tags="perkElectrocutioner" />--><!----><triggered_effecttrigger="onSelfAttackedOther"action="ModifyCVar"target="other"cvar="$buffShockedAmmoDuration"operation="set"value="2.5"/><triggered_effecttrigger="onSelfAttackedOther"action="AddBuff"target="other"buff="buffShockedAmmo"duration="2.5"><requirementname="RandomRoll"seed_type="Random"min_max="1,100"operation="LTE"value="25"/></triggered_effect><triggered_effecttrigger="onSelfAttackedOther"action="AddBuff"target="otherAOE"range="1.5"target_tags="zombie,animal"buff="buffShockedAmmo"duration="2.5"><requirementname="RandomRoll"seed_type="Random"min_max="1,100"operation="LTE"value="10"/></triggered_effect><display_valuename="dShockDuration"value="2.5"/></effect_group>
Shocking Ammo Mod (Working w/Issues)
in Discussion and Requests
Posted
Hey, recently I got some custom ammo in the game working that has a small chance to apply a wrapper buff around `buffShock` with a small chance to spread to nearby enemies. However, I have a few questions to get it to behave the way I want.
The buff in `Config/buffs.xml`
The `<effect_group>` in each ammo type in `Config/items.xml`
`ui_display.xml`
And finally `Localization.txt` -- the rest of my localization edits are working including custom ammo name and description.