As long as there’s a shared skeleton, you can make any model work with any animation that has the same skeleton.
So all that was needed to be done was to figure out what skeleton the animations were looking for and then set up an equivalent skeleton for the modded race. Then you can just reuse the same animations the game does.