Ooh, good question. Yes, there is a way to do what you would like.
The COWarMod lets you modify weapons and adds a lot of different versions. Here's the page for it:
http://warmod.webs.com/downloadcowarmod.htmI'd recommend using it with Lost Key in order to spawn in weapon attachments
Lost Key > Work > Weapon systems > Items