gkuba
Refugee
Hopefully someone can let me know whats going on here but I am trying to change the junk turret deployed firing sound to the markman's rifle suppressed sound. If I manually change it in the entity_classes.xml it works fine but trying to change it via xpath doesn't.
I have tried doing this both ways but neither works and there are no error / warnings in the console.
If anyone knows why this change isn't taking I would love to hear it.
Thanks!
I have tried doing this both ways but neither works and there are no error / warnings in the console.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<WeaponTweaks>
<setattribute xpath="/entity_classes/entity_class[@name='turretJunk']/property[@name='FireSound']" name="value">sniperrifle_s_fire</setattribute>
</WeaponTweaks>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<WeaponTweaks>
<set xpath="/entity_classes/entity_class[@name='turretJunk']/property[@name='FireSound']/@value">sniperrifle_s_fire</set>
</WeaponTweaks>
Thanks!