Anti Camp Spawn areas only

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
G3mInI
First Lieutenant
Posts: 187
Joined: Sat Jun 29, 2002 3:49 am

Anti Camp Spawn areas only

Post by G3mInI »

Hey all, been a long time since I have scripted and forgot most of it.

I want to implement anti camping at spawn in a few maps. Not like what Admin Pro does.

What I am looking for is after 2 minutes have passed and you are still at spawn, I would like 10 health to be taken away every 5 seconds. Either you leave spawn or you die.

My maps are all obj and all set to 5 min rounds. So I would like to implement an anti spawn camping mod to keep people from just hanging out there for the whole 5 minutes.

I could research and figure this out again, but I was hoping someone could just throw something up real quick to point me in the right direction.

Getting coordinates for the spawned trigger box is not a problem. I just dont remember how to add the timer and then add the pain.

Thanks in advance !!
*Area51*G3mInI****Gen

http://www.area51moh.com
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Post by Killerdude »

NO, don't do it Gem. I like camping at your server :D
[Rome wasn't mapped in a day!]
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Post by Killerdude »

On a more serious note, check out the file zzz_no_camping.pk3 in this download http://medalofhonor.filefront.com/file/ ... od%3B69105

It might help.
KD
[Rome wasn't mapped in a day!]
Post Reply