I had a plastic cap gun revolver once, I hollowed out the barrel and rammed BBs down the front of the cylinder and used the pressure from the caps going off to fire it.
Actually worked, but the barrel was about 5mm wider than the BBs, so accuracy wasn't really a thing...