I assume some IK? I would hack it somehow (have few ideas about contstrains to bones) but do You know some more informations? Thanks.
(I am not sure where to ask about similar -how was this effect in game X done- questions, so I apologize for messing up the Quake community forum.)