This sort of reminded me of underwater ammunition, which does kinda look like nails:


The Russians made a couple underwater rifles that fired long ammo


Apparently they were shitty outside of the water though. Some could fire 2 different ammunition types depending on whether or not you were underwater.