Tremulous Forum

Media => Mapping Center => Topic started by: Evoc on August 11, 2008, 06:30:32 am

Title: How would I make an outside area give you damage?
Post by: Evoc on August 11, 2008, 06:30:32 am
Hey, Evoc again. I know I am posting quite a few topics, but as all of the topics are unrelated, I'd like to keep them separate, so that each topic can stay "focused." Please, no flaming. Thanks.

How would I go about making an outside area give damage, like on Pulse? I am assuming that I would use trigger_hurt, but this may not be the case and I would like to confirm whether it is or not. If it isn't the case, please explain thoroughly what I would need to do. If I would use trigger_hurt, my questions are the following: How would I set it up (please remember to explain how to make it give X amount of damage a second)? and Is "trigger_hurt" a "noclipped" brush, and by this I mean can humans and aliens just walk through it? Thanks again.
Title: Re: How would I make an outside area give you damage?
Post by: n.o.s.brain on August 11, 2008, 07:12:35 am
soubok used some triggers which don't exist in the radiant def list, here (http://dmc-designworks.com/minarik_andrew/tremulous/pulse-entities.zip) is a map file of them.
make a brush, texture it with common/trigger, then press n and make it into a trigger_multiple entity, then target the appropriate target_hurt entity from pulse for the desired damage effect.
Title: Re: How would I make an outside area give you damage?
Post by: epsy on August 11, 2008, 01:59:56 pm
also note that currently you can't deal damage to multiple players with the same trigger_hurt
Title: Re: How would I make an outside area give you damage?
Post by: Survivor on August 11, 2008, 02:56:03 pm
I heard a moment ago that problem has been solved serverside by ===Troy===.
Title: Re: How would I make an outside area give you damage?
Post by: n.o.s.brain on August 11, 2008, 03:24:12 pm
it has, he just hasn't released it yet ;)
Title: Re: How would I make an outside area give you damage?
Post by: Evoc on August 11, 2008, 03:26:31 pm
Wait, I am confused. What do you mean it can't deal damage to multiple players? On Pulse, everyone who is outside is damaged. You're saying only one person outside is damaged? Please clarify.
Title: Re: How would I make an outside area give you damage?
Post by: Survivor on August 11, 2008, 03:44:27 pm
well we know that brain, :p. And no, in no version of pulse damage is dealt by the same trigger_hurt to more than one person.
Title: Re: How would I make an outside area give you damage?
Post by: Evoc on August 11, 2008, 03:49:09 pm
OHH! Because trigger_hurt can only hurt one person at a time, the person who made pulse designed the entities that Brain provided me a link to so that more than one person can be damaged at the same time.

Is this correct?

Also, how then does ATCS damage multiple players when they touch the electric fence? Or do they only damage 1 player at a time? Or do they switch off? Also, how then does the map "highrise9" use the electric fields, do they only kill 1 player at a time?
Title: Re: How would I make an outside area give you damage?
Post by: epsy on August 11, 2008, 07:27:44 pm
guess that you could use more trigger_hurts as a workaround
in highrise i think these are trigger_kills
(also, note that with recent qvms trigger_hurt does not affect players in godmode, so don't use trigger_hurt in places where you don't want curious players to see it all)
Title: Re: How would I make an outside area give you damage?
Post by: Survivor on August 11, 2008, 09:06:10 pm
kills are instant and have a high refresh, no worries there. As for several trigger_hurts overlayed, normally that would only result in a single player being hit by all of them = more hurtage
Title: Re: How would I make an outside area give you damage?
Post by: Evoc on August 11, 2008, 11:43:37 pm
Ah, I understand. Is it the same way for trigger_heal? And all of the other triggers for that matter?

Also, I tried to get the Pulse entities (thanks Brain!) to work, but I couldn't.

Also, what is Spawnflag 29?

Thanks.
Title: Re: How would I make an outside area give you damage?
Post by: ==Troy== on August 12, 2008, 12:43:11 am
Most of the triggers, once they are triggered "switch off" for that server-frame. I actually do not understand why soubok was using trigger_multiple, since it will not damage everyone just as well as trigger_hurt. There is currently no simple way of damaging all players at once.

And its ==Troy== :(


And all those statements about me fixing it are just rumours. do not beleive them.
Title: Re: How would I make an outside area give you damage?
Post by: Evoc on August 12, 2008, 02:51:36 am
Hmm...so trigger_multiple only affects one player at once, even WITH the part that hurts you as a target that is linked to the trigger (target_hurt), rather than just having it as a trigger. Hmmm...

But then how did he pull the effect off on pulse?
Title: Re: How would I make an outside area give you damage?
Post by: ==Troy== on August 12, 2008, 03:24:43 am
he did not. There are just multiple triggers afaik.
Title: Re: How would I make an outside area give you damage?
Post by: Evoc on August 12, 2008, 06:12:05 am
But then what if a person was standing on two of the triggers at once? Would that person receive double the damage?
Title: Re: How would I make an outside area give you damage?
Post by: Survivor on August 12, 2008, 04:42:19 pm
yes