Jump to content
Sign in to follow this  
voxlltv

Mod gun magazine size

Recommended Posts

Hello all!

 

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

 

<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!

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...