[ Injuries ] Open Question : Why do I like hurting myself?

I have this problem. For about 30 minutes a day I stand up and hit myself with a bat on my forehead. It does hurt but at the same time it feels good. Sometimes after I do this, I get headaches and bruises. I also have another problem. About every month or two I shoot myself with an m9 pistol. I always shoot it in the leg and then i let it heal for about a month or two then I do it again. Again, it hurts and it feels good at the same time. I've been doing this for a almost a year and I think it's becoming a problem. My parents know that I do this, and I can tell they don't like to see me doing this but they also said that it's up to me if I want to do that. I'm 15 years old. Should I go and talk to someone? Can this benefit me in any way? Should I continue? Please help, I'm serious about this.