esselfortium
Cumulonimbus Antagonistic Posting

Posts: 5152
Registered: 01-02 |
Yes, it is possible to make a lift or elevator travel through a portal. :)
...actually, I've never done it with an elevator, only lifts, so I'm not sure. It might be possible, though! If it's not, though, and you don't want to have just a lift, you *could* of course use line-to-line portals, but you'd then have to have separate doorways for the upper and lower floors' exits/entrances of your elevator. (i.e. one on each side, or whatever)
To do a lift that goes between two portals, though:
What you need to do is build your lift connected to one of your portal layers, then copy and paste it to create another lift at the matching position on the other portal layer. Don't tag it as a lift; we'll take care of making that work soon. Just give it the same tags needed for regular upper and lower sectors of a portal.
Then, set the ceiling of the bottom layer's lift to the height of the surrounding portal ceiling. This should result in that sector actually having a negative height, with its floor being somewhat higher than its ceiling. The floors of both lifts should be at the same height.
You'll now use the magic of an EE feature called "Attached Surfaces" to force your two lifts to move together as if they were one sector.
Attached Surface control lines work by affecting the sector that the line's front side is facing. I believe this is mainly so that they don't interfere with tagging used for lifts and portals and such!
Make a dummy sector somewhere in the void, and set its floor height to match that of your lifts. Make another dummy sector that's directly connected to that one, and set its floor height to what you want your lifts to lower to. Tag the lift-height sector, and set the appropriate linedef specials in your map where needed to move that dummy sector as a lift.
On one of the lines facing your dummy lift sector, apply line special 380: "Attach Set Front Sector Floor as Control". Give that line a new tag.
Now, on a line facing each of your two ingame lifts, apply line special 381: "Attach Front Sector Floor to Tagged Controls", and give that line the same tag that you gave the control.
If you did it right and I didn't somehow forget a step, that should be it! I should note that currently sectors moving with attached surfaces don't make any sound. You can probably avoid this issue by putting your dummy control sector nearby so you can hear it, but that shouldn't really be necessary, so I highly recommend pestering SoM or Quasar to add an ability to define sound sequences for them, like they promised they would :)
With this setup, you can also pretty effortlessly create detailed multi-sector lifts, doors, elevators, crushers, and any other sort of moving floor or ceiling action, without the risk of the structure "breaking" if one sector's movement is blocked.
__________________
Released: Seventeen More Times (album) - Listen free online! | Vaporware Demo | SpaceDM9 | A Terrible Flood (album) | SpaceDM5 | Greenwar 2 | 32in24 series | Claust1024 | Testing Facility
In Progress: Vaporware | KDiKDiZD | TSoZD | ???
Resources: EDF Monster Library | Mapping Tips | CC4-tex | EsselTX
|