I would be very wary about taking the PCs morale out of the players' hands.
Except, of course, if lack of control is built into the game as a feature. Pendragon most obviously comes to mind.
For opponents though, I have always made judgement calls for when they flee, based on what types of...