How to cut a mesh outline on another plane
I assume that the half-gun has a flat face on the side it's cut.

You can extrude that face out so that it goes through the plane and then subtract the gun from the plane.

Here's an example with a half-suzanne. With a bit of imagination, it looks a bit like a gun :-)



And here's the final result