Magnetic pulse gun