Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
AndrewB

Walkable-over railings...?

Recommended Posts

Now I know I've read a tutorial before on how to make railings, with the grate and fence textures, that don't use impassable lines, but a special trick that allows things to go over the top of the fence/railing, such as lost souls, Cacodemons, and the player, et cetera. I thought it was an Afterglow tutorial, but I cannot find it anywhere on his page.

Nevertheless, can anyone tell me how to perform this editing trick? All I really remember about the tutorial is setting the light level of one sector one unit higher. That is, if a surrounding sector is light level 128, it would be set at 129. In this case, there is no visual difference in light level whatsoever, but creating this difference in sector properties is needed for a certain reason that I can't recall. It is the only way to create a difference in sector properties without affecting gameplay at all.

Sorry, this all I know. Any more information would really be helpful.

Share this post


Link to post

The thing about the different lighting is to keep it from drawing railings "into" the ground. You've probably seen some maps that have bars that go anywhere from 8 to 104 pixels "into" the floor, and look ridiculous. If there are different sector properties, it cuts the bar texture off at floor level.

As for the trick: it's similar to the pre-port way of creating deep water and invisible platforms: what you'd do is have a line (preferably 1 pixel, maybe 2 or 4 pixels) away from the rail and on each side of the rail, spanning the entire length of the rail, as if you were to have 3 rails alongside eachother.

The next part takes some manual sector defining: you'll need to make the first side of that line a sector which is not connected to any other in the map. Then do the same thing with the second side. Make sure the first and second sides, although different sector numbers, have the *exact* same identical sector properties. These properties are where you'll specify the floor height which will be used as the part of the rail that you walk along.

As you could probably guess by the problem with the bars going "into" the ground, sectors next to eachother which have identical properties do not include the linedef that separates them, so you could give these sectors whatever properties you feel like in terms of texture, lighting, etc., but as long as the floor and ceiling heights are set, that's the only way you'll notice them in the game - when you walk into/over them. Since the game won't draw anything connected to those lines on each side of the railing, you won't see any of those sector settings showing up in the actual map.

It should be easy to do in Deep - draw the lines accompanying the rail, let them split the sector if it wants, then go outside the map and make two dummy squares. Set the properties here (your height, etc.) and manually redefine the front and back side of those invisible lines to match the dummy sectors. I leave those dummy sectors there until I'm done with the map, it makes changing the properties a lot easier if indeed I ever do have to rearrange the scene.

Of course, now you'll have some open sectors that won't pass an error check and won't run properly in a GL port, but it'll work in any other engine.

I can't think of a WAD that had this at the moment, but hopefully that makes sense. I guess I could do a little demo if necessary.

Share this post


Link to post

Shock 'em Down has a walkable-over railing in it. It's right after the red door, to the left, so the caco's can easily flood into the area after the player starts shooting.

Share this post


Link to post
Guest Fanatic

Or just use EDGE and make real 3D railings. :)

Share this post


Link to post

I have several of these in my level.. I just used 1x1 invisible bridge things, spread just enough apart so that the player cannot walk between them, but can still jump over them.. I dunno, it's pretty easy stuff...

Share this post


Link to post

Chaos, what AndrewB is asking for is a way to do the railing thing in DooM.exe or DooM2.exe. The invisible thing (Thing 9990) that you use is for ZDooM only. In vanilla DooM the trick requires somewhat more complicated editing, as Lut has explained.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
×