Here it is..

Then I started searching for a gun to put it in and then found this bad boy


In that sniper rifle, the valve will be positioned somewhere behind the trigger guard in line with the barrel. Its air tank will be above the barrel so its gonna be in reverse then on the pic of the valve. The first thing that struck me when I made the gun 1:1 on paper is that my nail darts fit into that magazine with approx 7mm of clearance on each side. So why not make it magazine fed. I made an animation how the whole thing will work but without the ejection system. Its my first animation so I apologize if I messed something up...

Once fired I will move the barrel forward to unlock the cartridge. By some means, the empty cartridge will fly out, spring pushes a new cartridge into the chamber and the barrel moves back to lock it. The cartridges will be same material as the barrel - green 1/2 PVC. They will have O rings on the ends to make an air tight seal when locked.
The only problem I have is that I dont know how to make the empty cartridge fly out once I move the barrel forward.
Since the air chamber, valve and barrel will be encased in a wooden shell carved into that rifle, the mechanical possibilities are endless, I just need an idea how to do it.
I was thinking about mounting a metal rod to ride a bit behind the barrel with a spring powered plate. When the barrel moves forward so does the rod, once the barrel is in the most forward position, the plate will be aligned with the cartridge and released, pushing the cartridge out. My worry is that the next cartridge will come up before I have the time to move the barrel back and get that plate back into its position so the cartridge has no problems coming up. It could just stop it for a bit and when I move the barrel back, the cartridge comes up or it could jam or even worse empty the whole mag in a split sec.
Any suggestions?