Trace masks

I was looking up on how to use traces but I can’t work out how to make it so the trace will ignore npcs, dead bodies, ragdolls etc.

Could someone tell me what mask to use to ignore them?

[editline]6th July 2011[/editline]

Just researching it seems to be the filters but I am still unable to work out what value to use.