Dismemberment System in Doom and Doom Eternal

How does the dismemberment system work in doom 2016 and doom eternal? How do they tear the enemies in half and at irregular angles (i did notice that the cuts are predetermined). I am trying to figure out how to do this in UE4.