Tremulous Forum

Media => Mapping Center => Topic started by: ShadowCoder on January 18, 2009, 06:07:40 am

Title: Stage Doors
Post by: ShadowCoder on January 18, 2009, 06:07:40 am
Hello my problem for today is i have made 4 doors, 2 activating at stage 2 and the other 2 activating at stage 3. When I reach stage 2 the door does nothing and the same problem happens with the stage 3 doors. In GTKradiant 1.5.0 the trigger_stage entities are on there appropriate doors. Maybe I have something wrong in the key/value field?

Here is what I have in one of the trigger_stage entities...
**note** The entity is NOT in the void.

classname      trigger_stage
origin             720 313 160
stage             1
target            stage2door1
team              1

Here is the door it is pointing too...

angle            -2
classname     func_door
targetname   stage2door1


Any and all help would be appreciated. Thanks!  :)
Title: Re: Stage Doors
Post by: ghostisback on January 18, 2009, 02:57:53 pm
Hi !!!

First of all insert a wait 999999 var in the door entity otherwise it will open and close after 2 secs...

Second : this door must open only at Alien Stage 2 or at Humans Stage 2 too ?

Have Fun !!!
Title: Re: Stage Doors
Post by: UniqPhoeniX on January 18, 2009, 06:04:02 pm
If you tested by changing g_humanStage and g_alienStage (which won't work), then try again by setting cvars like g_alienStage2Treshold to 0.
Title: Re: Stage Doors
Post by: professor on January 18, 2009, 11:36:03 pm
You don't have to have a separete trigger to make the door work on a stage, just make the door have all the stuff that u had put on the trigger that should work
Title: Re: Stage Doors
Post by: Zero Ame on January 19, 2009, 05:15:54 am
Second : this door must open only at Alien Stage 2 or at Humans Stage 2 too ?

A good way to do this is to make the door into either 2 or 3 seperate doors. like this ||| the middle would move when humans get stage 2 and outside 2 when aliens get stage 2

 Or || 1 at as2 and other at hs2

Also you might want to make the doors speed 1 so that when they do get it takes awhile to get up and then make the wait 999999 like ghost said to do.
Title: Re: Stage Doors
Post by: ghostisback on January 19, 2009, 10:46:23 am
@ Zero Ame: to open a door at stage 2 (human or alien) only need to trigger it with the 2 triggers... important is the wait value otherwise it will close immediatly :)

Example:

classname      trigger_stage
origin             720 313 160
stage             1
target            stage2door1
team              1              ********** ALIENS STAGE 2 ********
wait               999999

classname      trigger_stage
origin             720 320 160
stage             1
target            stage2door1
team              2              ********** HUMANS STAGE 2 ********
wait               999999
Here is the door it is pointing too...

angle            -2
classname     func_door
targetname   stage2door1


Have Fun !!!
Title: Re: Stage Doors
Post by: gimhael on January 19, 2009, 10:55:05 am
I think Zero Ame described a door that opens when both teams are S2, whereas you described a doot that opens when either team is S2.
Title: Re: Stage Doors
Post by: Amanieu on January 21, 2009, 06:29:10 am
Make 2 doors
Title: Re: Stage Doors
Post by: UniqPhoeniX on January 21, 2009, 07:06:20 am
For a door that opens when BOTH are s2, you can use a func_train, since it needs to be triggered twice if it is waiting at a path_corner. ghostisback: trigger_stage doesn't use a wait key, tho you need a wait key on the door or it will close again in 2 sec.
Title: Re: Stage Doors
Post by: ghostisback on January 21, 2009, 09:08:03 am
ghostisback: trigger_stage doesn't use a wait key, tho you need a wait key on the door or it will close again in 2 sec.

My error !!! i want to wait door not trigger, sorry :P
Title: Re: Stage Doors
Post by: ShadowCoder on January 21, 2009, 10:26:46 pm
Hi !!!

First of all insert a wait 999999 var in the door entity otherwise it will open and close after 2 secs...

Second : this door must open only at Alien Stage 2 or at Humans Stage 2 too ?

Have Fun !!!
If you tested by changing g_humanStage and g_alienStage (which won't work), then try again by setting cvars like g_alienStage2Treshold to 0.

Thank you Ghostisback and UsaKilleR. These 2 helped my problem.  :D
Title: Re: Stage Doors
Post by: [RUS] dRiver on January 22, 2009, 01:22:00 pm
Quote
If you tested by changing g_humanStage and g_alienStage (which won't work), then try again by setting cvars like g_alienStage2Treshold to 0.
Ye, also was surprised by this one day. But, according to manual, trigger_stage still untested. And, accidently, i may not work. And sometime it happens (even on UCTS, where i saw such doors 1st time). =]
Title: Re: Stage Doors
Post by: The Me on January 22, 2009, 03:42:33 pm
Is it possible to have doors shut when a team reaches a certain stage?
Title: Re: Stage Doors
Post by: Odin on January 22, 2009, 07:48:07 pm
Yes. Have the doors open from a trigger_stage, then again with another trigger_stage for a different stage.