MahAyss Posted November 19, 2012 Share Posted November 19, 2012 How do I edit ammo weights in FWE? Some of the weights are bugging me (40mm nades being 1lb when in reality they are only 0.5lbs being a large one). Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted November 22, 2012 Share Posted November 22, 2012 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 AWeightThis 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 More sharing options...
Recommended Posts