Making a SWEP that increases accuracy upon firing?

Much like Hyperion weapons from Borderlands, I’m trying to find a way to make a weapon increase it’s accuracy through firing. Any help will be greatly appreciated.

What base are you using? Most bases will have an “accuracy” or “cone” or “spread” field which you can tweak in PrimaryFire.