Jump to content

How to edit ammo weights in FWE?


MahAyss

Recommended Posts

It's in a script called FWEAmmoSupplyScript, and controlled by lists referenced in that script. Specifically, the section below:

set WG1 to player.GetItemCount AmmoWeight001List
set WG3 to 3 * player.GetItemCount AmmoWeight003List
set WG5 to 5 * player.GetItemCount AmmoWeight005List
set WG10 to 10 * player.GetItemCount AmmoWeight010List
set WG100 to 100 * player.GetItemCount AmmoWeight100List
set WG300 to 300 * player.GetItemCount AmmoWeight300List

set AWeight to ( ( WG1 + WG3 + WG5 + WG10 + WG100 + WG300) / 100 )
Setweight AWeight FWEAmmoSupply
Setweight AWeight FWEAmmoToken1
Set FWEAmmowg1 to AWeight

This works by getting the item count of a list (which returns the total count of every item in that list), and then obviously multiplying it by whatever. Then it does more math to get to the final weight (the math is self explanatory).

 

To change weights, either move the ammo to another list (this method is additive I believe), so items on multiple lists would get greater weight depending on the list it's on. If you're feeling really extreme, you could always add more lists and adjust the code accordingly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...