here is my new plan, it is for a rifle that melts down any ferrous metal and then shoots it at variable ranges. Call up the schematic for a Gauss rifle. Remove any loading mechanism and repair any hole once this is done. Add a small dial on the side that controls the strength of the magnets in the barrel, and a switch that flips the polarity. Separate the stock of the rifle form the body and add a solid block of metal the width and height width of the body of the gun where you separated the stock form the gun. the block is about 5 inches long. Weld any attachment points need to attach the stock to the end of the new block of metal.
Carve a hopper with a hatch on top, that is not quite as deep as the barrel and is slightly smaller then the mold below into the block of metal between the stock and the main body of the gun.
Carve out a space behind the hopper on the same level for a laser. Bore a hole between the hopper and the laser head so that the laser can melt the metal inside the hopper.
under neath the hopper there is a mold for a standard gauss rifle round. the mold is connected to the hopper by a small tunnel with a valve that when turned on allows molten metal to flow from the hopper into the mold. the mold is on the same level as the barrel carve out the metal separating the barrel and the front of the mold and replace it with a door that moves up and down. At the back of the mold there is a piston that push the round out of the mold and into the barrel.
Here is the order of the mechanical actions that happen. The hatch on top of the hopper opened. Scrap metal is loaded into the hopper. when the hatch is closed the valve separating the hopper from the mold is turned off. And the laser heats the metal until it is molten. The valve then turns to the on position dumping the molten metal into the mold. The valve is turned to the off position. The round in the mold is allowed to cool. Once the round is cool if there is no round in the barrel the door in front of the mold opens and the piston at the back of the mold pushes the round. If there is a round in the barrel the hatch on top of the hopper gets locked so that you can not put any more metal in.
When you pull the trigger it fires the round. And if there is a cooled round in the mold. It will open the door between the mold and the barrel, and then the piston at the back of the mold pushes the round into the barrel and unlocks the hatch on top of the hopper.
Fill the hopper with ferrous scrap metal, wait for it to make the round and then test fire the weapon at 100 percent power.
Then try to front load the gun using a premade Gauss rifle slug. by switching the polarity of the coils. placing the slug at the front of the barrel and firing the weapon at 2 percent power. Then put the polarity back to normal and fire the weapon at 100 percent power.
EDIT: oops I missed the clause for pulling the trigger.
EDIT 2: I forgot to say to fire the weapon.
EDIT 3: clarified, and added the ability to front load the gun
I tired to be as specific as I could be and make it very clear how everything works. Did I make any glaring errors that would prevent this from working? Does any one have a suggestion for how to improve it?