HURT

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
BuLLitz
Posts: 10
Joined: Tue Feb 20, 2007 10:42 pm

HURT

Post 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?
nUllSkillZ
Posts: 62
Joined: Mon Dec 29, 2003 12:25 pm

Post 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.
User avatar
mortis
Posts: 360
Joined: Tue Jul 06, 2004 11:57 pm
Location: at the center of the e-universe
Contact:

Post 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.
BuLLitz
Posts: 10
Joined: Tue Feb 20, 2007 10:42 pm

Post by BuLLitz »

SWEET. I will tear apart your map script and see if I can make heads or tails of it.

THANKS!!!!!
BuLLitz
Posts: 10
Joined: Tue Feb 20, 2007 10:42 pm

Post 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... :-)
Post Reply