You could just make an add-on that modifies the variables or functions that you need to change.
Just add the required add-on line from the tank script, change it to Weapon_Gun, that way it won't get executed twice.
And then add the lines to change the Variables or Functions (when changing functions, you should package it just in case something goes wrong).