Hi all.
I'm trying to create a simple mod to set the value of SpreadMultiplierAiming to 0 for all guns. Instead of doing this by hardcoding each of the values for every weapon, I would like to use one of these "contains" functions to do it programmatically, and thus support any guns added from mods as well.
I know that this line will work for disabling crosshair on aiming for all guns:
<set xpath="/items/item[contains(@name, 'gun')]/property[contains(@name, 'CrosshairOnAim')]/@value">true</set>
I am trying to get the same functionality for work for "SpreadMultiplierAiming". The issue I'm having is that this value is nested within an effect_group, and I'm not sure what the syntax would look like here.
I have tried the following:
<set xpath="/items/item[contains(@name, 'gun')]/effect_group/passive_effect[contains(@name, 'SpreadMultiplierAiming')]/@value">0</set>
<set xpath="/items/item[contains(@name, 'gun')]/effect_group[contains(@name, 'gun')]/passive_effect[contains(@name, 'SpreadMultiplierAiming')]/@value">0</set>
But neither seem to work.
Any input would be appreciated!
Thanks😁