Hmmm... what to feel about this?
Camping ( that is staying in one place for a long time ) is not always a bad thing... I get so sad when players call other people campers in the wrong setting.
Let me explain: A bad camper is an Allied player that stays at respawn in V2. A good camper is an Axis that does not charge head on in The Hunt... you get the difference. Calling the defending team campers are just plain stupid.
So to your script:
- I like the idea. And as I feel bad camping is location dependant: I'd suggest spawning one or more triggers that surround the "bad areas" ( like the Allied spawn in V2 ).
- I also saw a cool thing that you could use when I played the MOH:AA Freze-tag mod for the first time yesterday: It said "XXX frozen at YYY" where YYY was something like "storage room" or "bridge" ( it was the "Bridge" map ). I think your idea of hurting/killing the camper is bad. The camper problem is worst ( in my mind ) when a single Axis is left, looking for a single Allied that is camping on the other side of the map... and you just want to strangle the camper with your bare hands because he is stealing your prechious play-time. So just giving away the position would be enough ( and besides: you don't take away the pleasure of the member of the opposite team kutting his caming head clean off with a well placed SMG burst

)
I think the best "CampBuster" mod would just give away the location of a camper after say... 20 seconds in a "bad" location and after one minute in the rest of the map. The mod would print "Scouts report an Allied camper in the Allied spawn" ( or something like that ). Thats my 2 ?re. ( 2/100 krona ).
Summary: Don't kill them, just expose their location. And faster in the "bad" locations.