It includes the Gun's bullet.dts and hit sound, which isn't needed. (change path to Add-Ons/Weapon_Gun/...)
It ejects shells, which it shouldn't, and includes the Gun's gunshell.dts, which isn't necessary.
The uiNames aren't capitalized. Did you use Find and Replace on the script?