I am not 100% sure but I guess it could be done by adding extra bones to the human skeleton for capes, cloaks, tails.... Breeze582000 was already able to add bones for breasts and genitals in Fallout 3 (Link to fallout mod). Problems is, that you probably have to change every animation for humans, so the new bones are also animated.