When you are fighting a melee NPC while using a firearm, do you not generally back up while firing, circle strafing, etc, in order to avoid the punishing short range attacks? Why don't the more intelligent enemies ever use these tactics?
Uh, they do?
At least the blasted NCR Trooper I was fighting last night did- I whipped out Knock Knock and had to chase him from Camp Searchlight almost to freaking Nipton with him running backwards and shooting all the way.
Then no fewer than 10 more of his buddies did the same while I was doing the endgame battle. 'Course it helped less then, they had the choice of standing while I beat them down or running and having Raul take them out.

PC version, for whatever difference that may or may not make.