Jump to content

Ammo limit


DEATHSHOCK

Recommended Posts

Well, now that someone's requesting one, I can ask some questions. I had an idea for making one a while back, but could not decide how it should function.

 

My idea would be to limit either ammo as types: pistol, rifle, ordnance, or as individual ammunitions: 10mm, 9mm, Missile, .357, etc.

 

The first idea would make more sense, but require some type of handling situation that would allow it to smartly drop extra ammo, which is where the difficulty comes in. I suppose it would need to drop ammo that is not for any currently carried guns first. This could lead to annoying problems though.

 

So the limitation by specific calibers is easier, nothing over a specified amount for each caliber, to be determined by some value (probably would make it MCM adjustable). In this case, do we want it to drop ammo by cheapest first? That would drop standard rounds before special rounds, but then, standard rounds get used more, as the special rounds are expensive and used only in certain circumstances.

 

You see the problem I encountered when trying to work on it.

 

I'm thinking I might just use a single value, the maximum weight you can carry of a particular caliber. Larger, heavier and more powerful bullets you would be limited to a relatively small number of heavy things like 50MG, but larger quantities of things like flamer fuel and 5mm, which get used in large amounts. I'm thinking a weight limit of between 3 and 4 WG for all rounds of a caliber.

 

I also had plans to have it scan inventory every so often, and if any mod weapons use new ammo types or lists, it would add them to itself, so it could manage them too.

Link to comment
Share on other sites

Well, I couldn't get the bug for this thought out of my head, so I figured out a formula that seems to work pretty well for most all ammo. The values can obviously be tweaked some, but they seem pretty solid here.

 

The idea is that a particular caliber is limited by the capacity of the largest capacity weapon of that caliber, as a multiple of the weight of the ammo. This means that lightweight ammo has a high capacity, while heavy ammo is limited.

 

You can see the results of calculation in the following spreadsheet. The formula used is: (weight mult value / ammo weight) x (modulus value % maximum capacity weapon capacity)

 

It then checks if the calculated value is below 3 clips worth for the weapon, if so, it multiplies by 2. This has already been applied in the spreadsheet.

 

Spreadsheet of numbers! Feel free to copy it and play with the two values in orange.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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