Hmm!
Heh, I wanted to try and do this with another weapon, and GIR said something like it'd probably be best to create a function that mimicked the Machine Gun's code, in that respect, and call it from the modified weapon's code. {Wherever the bullet code is}
Of course, I don't know much...