Ship-mounted weapon