I've had a little bit of education on this subject, and the idea of using the sound of a firearm as a deterrent is generally borne out by evidence as a bad idea. As is pointing a gun at someone with no intention to fire. These behaviors put a firearm carrier at the highest risk for being shot themselves.
You do not want to use the sound of your action to get your point across. If dealing with a person, your firearm should never come into the equation unless you are going to use it. Data show that the use of the firearm to end a life threatening situation is effective. The use of a firearm to threaten, or otherwise adjust a situation that is life threatening (or heading that way) just makes things worse. If you think about it, by using a firearm as a deterrent you instantly make the situation life threatening if it wasn't already, at least to the other guy.
Use of a firearm as a deterrent assumes one thing: That you are the only one armed. Often brazen people are armed and that is the source of their courage (but in this case, it seems more likely liquid courage), but you never know. If you bring out your gun, or cock it inside a tent to make a point, you may well get yourself shot pretty quick.
However there are very real and tangible ways that carrying a firearm can be of great assistance to you, no matter what the threat (two or four legged). That is the fact that you know it is there. That should change the way you approach a situation. Sitting in your tent with a drunk belligerent approaching, simply making noise and asking who was there is not something that you necessarily need a gun to sort out (and you didn't). Having the firearm in your tent may have likely put you in a position of confidence instead of fear. Then using your voice at the first time you were called out you could have said, "I'm sleeping in my tent, please leave me alone" in a firm and confident voice. That would be better than cocking a gun. Once you cock your gun you have threatened to kill someone who asked if you were there. That is not a suitable response for one, and for another, it is far more likely to result in rapid escalation.
So please oh please. If this is something new to you, please get some training, and please take the above advice to heart. Let you concealed firarm bring you a quiet confidence and an inner peace that allows you to peacefully diffuse a tense situation with the confidence of a solid Plan B in case things go wrong. Keep your firearm in its holster (whether concealed or open), especially if things get tense. Don't bring your firearm into the equation unless things have escalated past the "Life threatening threshold (you have been struck or touched in a threatening way, or directly verbally threatened with death, or have witnessed someone else being so treated and in need of assistance). If you unholster your firearm you have already decided that you are going to use it, and when the conditions meet those suitable to engage, you do so using deadly force (don't try to stop a problem by shooting someone in the leg).
The big difference between this and predator defense is that you get your gun out and ready as soon as you see the predator, then assess the threat.
I realize this is ugly talk, but the data are in. It's bad when there are politicians who advocate the sound of a 12 gauge shotgun being a great deterrent, and saying you don't even need ammo. It's bad when all you see on TV are people pointing their guns at each other and talking things over, or taking control of a situation. The real world doesn't go that way. Just look at the news. When the guns come out, people get shot. guns come out too early because we, as a society, are very very very poorly educated on this aspect of responsible gun ownership, instead informed by movies, tv, and motivated by fear to do the wrong thing over and over again.
Sorry to go off on a lecture here. At least maybe this is a different type of discourse on firearm use, and I'll admit it's ugly, but it's the truth, borne out by data and objective review of thousands of altercations by smart people.
And in my own students, I've had great feedback from people who have simply found their own confidence in the face of a huge bear knowing they had the firepower and training to stop a bad situation. This training started keeping their own fear response in check. That keeps the bears (or person depending) from reacting to your fear response (fear provokes attacks) aggressively. Moreover they started finding that when they encountered bears in the wilderness after receiving their training the bears were more docile, less assertive, and more likely to provide a trained person with a really great experience seeing a bear up close in the wild, with the bear relaxed and calm because they were relaxed and calm.
It's kind of a mission for me to instill in firearm users that the real tool is the change in their perspective, and their ability to deal with and diffuse a situation without the fear they would have if unarmed as the real benefit to carrying, and NOT the lethal force that can be delivered, or the boisterous threat of such force as a first effort in diffusing a situation.