News:

Come Chat with us live! Learn how HERE!

Main Menu

Stage Doors

Started by ShadowCoder, January 18, 2009, 06:07:40 AM

ShadowCoder

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!  :)

ghostisback

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 !!!

UniqPhoeniX

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.

professor

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
http://static.flickr.com/24/141310872_e39ad59705_b.jpg
omg! someone cut the arm off my tyrant!!

Zero Ame

Quote from: ghostisback on January 18, 2009, 02:57:53 PM
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.

ghostisback

@ 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 !!!

gimhael

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.

Amanieu

Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

UniqPhoeniX

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.

ghostisback

Quote from: UsaKilleR on January 21, 2009, 07:06:20 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

ShadowCoder

Quote from: 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 !!!
Quote from: UsaKilleR 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.

Thank you Ghostisback and UsaKilleR. These 2 helped my problem.  :D

[RUS] dRiver

QuoteIf 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). =]
[STAY PARANOID]=

The Me

Is it possible to have doors shut when a team reaches a certain stage?

Odin

Yes. Have the doors open from a trigger_stage, then again with another trigger_stage for a different stage.