put a specialized micro replicator that just makes bullets in place of the magazine and you essentially have an infinite ammo cheat.
I may be a little fuzzy on the official version of how replicators work. Do they not need feedstock?
I've always kind of assumed that they were basically transporters, pulling raw materials out of storage to be materialized as the requested thing. And the similarity in the special effects for the two seems to support that.
Either way, I can't help but think that an emplaced continuous-fire beam weapon would be more energy efficient and less prone to failure than a replicator-fed slugthrower.