Melee system of the likes of Uncharted 4

Hi everyone,
I was curious in knowing how can one implement a melee system found in Uncharted 4. I know it requires a large team with quality assets.
I am interested in the theory. How can one make the enemy react to the punches, have a special situational melee. Any other details which I may be skipping?