The M2 Browning is still in use in space.

https://lemmy.world/post/21265081

The M2 Browning is still in use in space. - Lemmy.World

[Source for the Art](The source for the art: https://twitter.com/konwashi_2/status/1849000087248376017?s=46 [https://twitter.com/konwashi_2/status/1849000087248376017?s=46])

Gunpowder is self oxidizing. As long as they used a non-evaporating lubricant on the actual mechanical components like graphite, and included a barrel liquid cooling loop, the M2 would operate totally fine in space.
What about barrel cooling? Getting rid of heat is a major challenge in a vacuum.
That’s why I say you need to provide a closed liquid coolant loop around the barrel that would ve integrated with your ship’s heat management system, to replace the air cooling of the barrel.

you need to provide a closed liquid coolant

Will the blood of my enemies suffice?

A little thick, but good enough.
Sugar is almost as corrosive as salt, so please make sure your enemies are on a sugar- free,salt-free diet, i.e., dying, saving you the trouble.
Way ahead of you there!
Only if they are cold blooded