Well, I already know I walk towards an attacker in such situations. Just like calmly mosey towards the guy with the gun. What was I planning? Not much really, just reacting, I was thinking about talking the kid down if I could, and getting close enough to reach him in the process. The people who launched themselves at the gun got there long before I did!
In any one-on-one fight the best way to win is make it not be a one-on-one fight. Running can be a very good way to accomplish that.