Tremulous Forum

Media => Mapping Center => Topic started by: ==Troy== on January 03, 2009, 04:56:37 pm

Title: Repeater Powered Door
Post by: ==Troy== on January 03, 2009, 04:56:37 pm
Have never seen such a setup in a map before, although it is surprisingly easy to do (credit goes to UniqPhoenix for the simplification of my own method).

Create a Door with wait = 1.1 second (the speed at which door moves must allow the door to fully open before this time)
Create a trigger_buildable with wait = 1 second (should be smaller than wait of the door, then specify which buildables you want it to trigger from)

Target the door with the trigger.

Thats all.

When the buildable is touching/inside of the trigger brush, it will cause the door to be constantly triggered. When the door is fully open and has been triggered, the wait timer resets on it and causes it to stay for another 1.1 seconds. If the building is destroyed, the door is not triggered anymore, and it returns to initial position after short period of time.

Quite simple and can add a nice touch to a map.
Title: Re: Repeater Powered Door
Post by: Archangel on January 03, 2009, 07:18:09 pm
soup. I can't build inside my trigger brush.

Code: [Select]
textures/repeaters/build-trigger-nodraw_s
{
qer_editorimage textures/repeaters/build-trigger-nodraw.jpg
qer_trans 0.2
surfaceparm nodraw
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
}

normally i'd think this would be all i needed to get a practically non-existing brush.
Quote
::13:00:06:: @kevlarman> looks like you just need !(r.contents & (MASK_PLAYERSOLID | CONTENTS_NOALIENBUILD | CONTENTS_NOHUMANBUILD | CONTENTS_NOBUILD))

but, apparently not, as i get a 'No room to build here' message. Any clue?
Title: Re: Repeater Powered Door
Post by: ==Troy== on January 03, 2009, 11:50:42 pm
It depends on the qvm you are using. Make sure you are using trigger shader and it is an entity. I have tried the example on lakitu qvm and it worked fine for me.
Title: Re: Repeater Powered Door
Post by: Archangel on January 04, 2009, 01:01:34 am
well, I have laki's QVM in my vm folder. I dunno :/
Title: Re: Repeater Powered Door
Post by: professor on January 04, 2009, 08:27:58 pm
would this work with neros?? cuz thats what i have in my vm for my server... and would this work in just the normal one?? cuz i can put that back in there if i need...
Title: Re: Repeater Powered Door
Post by: ==Troy== on January 04, 2009, 08:54:57 pm
it works on every qvm where the trigger_buildable operates correctly (i.e. you can build inside of the trigger_buildable)