Page 1 of 1

HURT

Posted: Sat Mar 10, 2007 11:01 am
by BuLLitz
Is it possible to script a hurt zone? And is it also possible to script it so that it only affects one team?

On some maps, I want to protect spawn areas by 'hurting' the opposing team should they enter...

Is this possible?

Posted: Sun Mar 11, 2007 12:26 am
by nUllSkillZ
I've tried "trigger_hurt"-entities in the fueldump-spawnprotection scripts.

Problem:
They can start inactive and can be activated by one team.
But will then stay active.
"setstate" isn't working.
You could try to "alertentity" them.
May be with a timer (1 or 0.5 sec.).
But in the meantime both teams/everyone that passes the barriers would be hurt.

Posted: Sun Mar 11, 2007 9:13 am
by mortis
I haven't had any trouble with trigger_hurt that I have spawned in. I have one in my railgun mapscript bugfix that works fine, AFAIK.

Posted: Sun Mar 11, 2007 10:48 am
by BuLLitz
SWEET. I will tear apart your map script and see if I can make heads or tails of it.

THANKS!!!!!

Posted: Tue Mar 13, 2007 7:59 pm
by BuLLitz
nUllSkillZ wrote:I've tried "trigger_hurt"-entities in the fueldump-spawnprotection scripts.

Problem:
They can start inactive and can be activated by one team.
But will then stay active.
"setstate" isn't working.
You could try to "alertentity" them.
May be with a timer (1 or 0.5 sec.).
But in the meantime both teams/everyone that passes the barriers would be hurt.
I don't know if it is possible to make it so only one team gets hurt and only those players that are invading the protected spawn. So...

Instead of hurting everyone in the area, perhaps it would be better to make it more like a line instead of a square area and set the damage to a much higher level (insta-gib) and have it activated when the opposing team is in it.

In the spawn section you would create the line.....

scriptName "bugfix5"
classname "trigger_hurt"
origin "2560 768 616"
mins "-1 -15 -1"
maxs "1 25 1"
dmg 150


This could work in hallways and doorways where people are not typically side by side. The only person affected would be the one that crosses the line.

Perhaps in a trigger section.....
wm_announce "Base intruder detected and destroyed!"

Would it also be possible to make that 'line' appear red (like building materials)?

I guess what I am looking for is something like on Warbell map but instead of the columns vertical I want them horizontal.

Is this doable using script, visible or otherwise? I'm a n00b... :-)