Capsule damage

is there a way to assing a capsule collision to do different damage based on what melee weapon is equipped?