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

Mod gun magazine size

voxlltv

Refugee
Hello all!

I need to figure out how to mod the gun magazine size on the AK-47.

Code:
<effect_group name="gunAK47">
<passive_effect name="MagazineSize" operation="perc_add" value="-.122,.122"/> <!-- random MagazineSize -->

<passive_effect name="MagazineSize" operation="base_set" value="30"/>
You'll notice there are 2 lines that have "MagazineSize". How do I modify the base_set MagazineSize (the one that is set to "30") using XPath?

Thanks!

 
Just tested this one and it works.

<set xpath="/items/item[@name=gunAK47]/effect_group[@name=gunAK47]/passive_effect[@name=MagazineSize' and @operation='base_set]/@value">95</set>

 
Back
Top