Go to the location shown at the top of the screenshot and change the Trace Channel to weapon like shown in the image below.