Unused files in an addon? Huh, that's a rare find.
My best guess would be copying the scripts for the weapons they're for and replacing a couple lines on the copies. Sounds simple enough. I'm on mobile right now but if nobody else comes I'll look into it.