Shino
New member
Kinda what the title says. Tried to do something simple on xml modlet and remove the crosshair from ironsights.
In theory it should be as simple as just setting the CrosshairOnAim property as false. Unfortunately that isn't happening for me.
I have tried using the xpath as
<set xpath="/items/item[contains(@name, 'gun') and not( contains(@name,'Bow') or contains(@name, Nail) or contains(@name, 'Explosive'))]/property[@name='CrosshairOnAim']/@value">false</set>
But ultimately settled for readability and went for
<set xpath="/items/item[contains(@name, 'gun') or contains(@name,'Gun')]/property[@name='CrosshairOnAim']/@value">false</set>
<set xpath="/items/item[contains(@name, 'Bow')]/property[@name='CrosshairOnAim']/@value">true</set>
<set xpath="/items/item[contains(@name, 'Nail')]/property[@name='CrosshairOnAim']/@value">true</set>
<set xpath="/items/item[contains(@name, 'Explosive')]/property[@name='CrosshairOnAim']/@value">true</set>
And also went into the item_modifier xml and did a
<set xpath="/item_modifiers/item_modifier/item_property_overrides/property[@name='CrosshairOnAim']/@value">false</set>
All enclosed into <config> tags.
Problem is, it isn't working. Tested in A21 and V1.0 and neither seem to be doing it.
What's worse, checked the logs and the game ISN'T complaining about anything regarding that modlet.
What could I be doing wrong? Any advice is welcome and thanked before hand!
In theory it should be as simple as just setting the CrosshairOnAim property as false. Unfortunately that isn't happening for me.
I have tried using the xpath as
<set xpath="/items/item[contains(@name, 'gun') and not( contains(@name,'Bow') or contains(@name, Nail) or contains(@name, 'Explosive'))]/property[@name='CrosshairOnAim']/@value">false</set>
But ultimately settled for readability and went for
<set xpath="/items/item[contains(@name, 'gun') or contains(@name,'Gun')]/property[@name='CrosshairOnAim']/@value">false</set>
<set xpath="/items/item[contains(@name, 'Bow')]/property[@name='CrosshairOnAim']/@value">true</set>
<set xpath="/items/item[contains(@name, 'Nail')]/property[@name='CrosshairOnAim']/@value">true</set>
<set xpath="/items/item[contains(@name, 'Explosive')]/property[@name='CrosshairOnAim']/@value">true</set>
And also went into the item_modifier xml and did a
<set xpath="/item_modifiers/item_modifier/item_property_overrides/property[@name='CrosshairOnAim']/@value">false</set>
All enclosed into <config> tags.
Problem is, it isn't working. Tested in A21 and V1.0 and neither seem to be doing it.
What's worse, checked the logs and the game ISN'T complaining about anything regarding that modlet.
What could I be doing wrong? Any advice is welcome and thanked before hand!