"In the very few times that the victim has a gun, Hollywood has gone out of its way to make sure that the use was either illegal or morally questionable."
Not always, but it's certainly a minority of such portrayals.
For example, the end of Fatal Attraction where Michael Douglas' wife shoots Glenn Close with a Smith & Wesson snubbie as she's about to plunge a knife into his back.
Two shows right now that are showing firearms useage fairly prominently and positively are Falling Skies and The Walking Dead.
Granted, in both there are incidents where firearms are used nefariously.
But, in the season ender for Falling Skies the main character discusses the impending attack on the aliens in terms of colonial resistance to Great Britain at the battles of Lexington and Concord.
"The gift which I am sending you is called a dog, and is in fact the most precious and valuable possession of mankind" -Theodorus Gaza
Baby Jesus cries when the fat redneck doesn't have military-grade firepower.