In game, most of weapons can be equiped with accessories you unlocked before with the vendors. To use them, the default key is "C". The best attachments are ultra-rare. They are usefull every time, a weapon without attachment equiped isn't use at the maximum potential. Some of attachments can be use on different class.