Robot hydraulic

I have a robot character, which have a lot of hydraulics and pneumatics in its limbs. In static linear animation this is all good, but they start to weird out in complex blend animations and state machines, any ideas how this can be fixed? Maybe some procedural lookat animation for these joints, like in 3ds max? Is that possible?