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

Modifying arrows

Atrophied

New member
Anyone have any idea where the stuff for arrow breakage etc is ?

I wanna fiddle around with the breakage percent and some other stuff and don't know where to find it.

 
search key: "ProjectileStickChance" in items.xml

as far as I understand - if it does not stick - then breaks.

 
It would seem the value provided in the XML doesn't do anything, the base chance seems baked into the code. Fiddling with the 'perc_set' operation didn't seem to do anything, however, inserting a new line with the operation 'perc_add' seems to have worked. My limited testing has every arrow sticking into 5 or 6 zombies including using one as a pin cushion till it despawned, no arrows broke.

<append xpath="/items/item/effect_group[@name=Base Effects]">

<passive_effect name="ProjectileStickChance" operation="perc_add" value="1"/>

</append>

That should work flawlessly for nails and bolts as well, dunno if it will do anything with guns though, I doubt they have a base stick chance in their code. :)

Thanks :D

 
Last edited by a moderator:
Yes, this is common - there are things that hardcoded despite the fact that seems to govern from the .xml.

I didn't check on "stick chance". It is possible that this will be available in A18.

 
Back
Top