The key to survival in these situations is DISTANCE.
Don't be afraid to reach out 50 yards or more...even 150.
Problem is, you'll have to choose between living and a murder charge unless it's a GENUINE SHTF situation.
Want to see a lightly armed but frenzied up crowd scatter? Drop a couple of them from 100+yds where they can't be sure where it's coming from.
Still, if you survive the encounter they'll be back. You have to move immediately along pre-planned routes.
If you let them get close, you die. If not the first time, the second time for sure.
Just remember the old cowboys and indians movies. Those who holed up at the homestead were usually burned out and killed.
Look for those zombies before they get close.