Rotating bones

I’m having trouble with a rig I set up for a mini-gun. I set up and animated the rig with the model totaly level, and the animation for the rotating barrels works fine like that, however if I try to put the gun at any angle different from the one I animated it at then the barrels all try to rotate in alignment with the position they were at when they were animated. I need the bones to rotate in alignment with the rest of the gun, anybody know how I can do that?

could you post a blend? its a little hard to pinpoint what is going wrong from your discription

Did you use a single bone as a parent to all those barrel bones?