In DirectX you would just disable the z-buffer when drawing the gun... I think this gl_depth_test might be the same...