cmss13-devs / cmss13

Contains the code for CM-SS13
https://cm-ss13.com
GNU Affero General Public License v3.0
89 stars 498 forks source link

Infinite Shotgun Ammo #367

Closed DoomLaser9 closed 2 years ago

DoomLaser9 commented 2 years ago

Description

Weapons vendors can be abused to dispense unlimited shotgun shells.

Difference between expected and actual behavior

Shotguns shells shouldn't be unlimited. The fact that there are fewer flechette boxes seems to imply that they should be more limited.

Steps to reproduce

  1. Get box of shells (any kind).
  2. Empty the handfuls out of the box.
  3. Restock the vendor with the empty box.
  4. Now dispense a full box of shells.
  5. Profit?

Issue bingo (not required to be all checked)

Superwelder commented 2 years ago

This was ruled on long ago. It is a non-issue. If anything, it should be encouraged to reduce clutter in the squad preparation areas. Everyone should have access to basic ammunition like buckshot, slugs, etc.

Diegoflores31 commented 2 years ago

this only happens on shotgun shells since they are supposed to be common ammunition .. as you can see here the AP and special ammo is protected against this behaviour image

DoomLaser9 commented 2 years ago

I've done a bit more testing, and it seems you can also infinitely restock any kind of ammo vended from the automated weapons rack (which includes AP ammo for the 88 Mod 4).

Mainly what prompted me to submit this issue is that there are always fewer flechette shell boxes than other kinds of shotgun ammo boxes, making me believe that flechette was not intended to be unlimited. Perhaps it was limited in the past before the common ammo all became unlimited, in which case the only possible code change that would make sense is changing the number of flechette boxes to be the same as buckshot and slugs (since they're all unlimited anyway).

Diegoflores31 commented 2 years ago

Flechette is literally one of the weakest shotgun ammo variant and only good with MOU ... also i dont think restocking is really an issue since all the ammo from the prep vendors winout restocking is more than humanly usable on a round

Segrain commented 2 years ago

Not really a bug in a meaningful way. There is so much of any kind of standard ammunition that it can be reasonably inferred that it is meant to be readily available in sufficient quantity for any marine to fill his loadout. There is room for general discussion on whether it makes any sense that rifles/SMG have AP ammunition as limited and coveted resource while shotguns have all their ammo types available at all times, but that room is not here.