home *** CD-ROM | disk | FTP | other *** search
/ MegaDoom Add-On 3 / MEGADOOM3.iso / dm2wads / riche1m1 / deugp2.txt next >
Text File  |  1994-10-26  |  12KB  |  300 lines

  1.  
  2.  
  3.                                                                               Part 2, Page 1
  4.                                                                               
  5.         B E G I N N E R S   G U I D E   T O   D E U
  6.  
  7. Part 2 - LineDefs, SideDefs, and Doors
  8.  
  9. Assuming you have read Part 1 of this guide (you have, haven't you?),
  10. and have played around with Vertices and Lines, we'll jump right in
  11. to an explanation of the LineDef and SideDef variables.
  12.  
  13. LineDefs
  14.  
  15. Each LineDef has a number, and a set of two Vertices.  As mentioned in
  16. Part 1, you can change the Vertices of each line.  This can be handy if
  17. you want to reverse the normal Vector of the Line, just swap the first
  18. and second Vertices to flip the Line around.
  19.  
  20. Each LineDef also has a set of "Flags" to describe how the Line behaves.
  21. Your DEU docs list these Flags, and they work like this:
  22.  
  23.     Im - Impassable by players and monsters.  This is a normal wall,
  24.            and you MUST have these all around the edges of your map,
  25.            so that a player won't just wander off into the void.
  26.  
  27.     Mo - Monsters cannot cross this Line.  Use this to pen 'em up 
  28.            someplace where they can wait to ambush your player.
  29.  
  30.     2s - A two-sided wall, it can be transparent and shot through,
  31.            so you can use this to make windows, or use it to make
  32.            invisible walls used as triggers for doors, lifts, etc.
  33.  
  34.     Up - Unpeg the upper texture of a wall.  Unpegging a texture means
  35.            that it won't follow a Sector movement, like a rising door.
  36.  
  37.     Lo - Unpeg the lower texture of a wall.
  38.  
  39.     Se - Secret Line.  This Line will appear as normal on the automap.
  40.            Use it to hide the fact that a Line is a secret door, trigger, 
  41.            etc.
  42.    
  43.     So - Blocks sound.  Monsters hearing gunfire will head towards it
  44.            to get in on all the fun.  Use this Flag on a Line to isolate
  45.            sounds from those waiting imps and demons.
  46.  
  47.     In - Invisible on the automap.  Useful for hiding the fact that a
  48.           "trip-wire" Line exists.  Or hide an entire Sector.  What fun!
  49.  
  50.     Ma - Already drawn on the automap at the start of the game.  You could
  51.            use this on the "Player start" area, or use it to lure a player
  52.            towards an area. (Ambush!)
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                                                                               Part 2, Page 2
  69.                                                                               
  70. In addition, the Line can be one of several "Types";
  71.  
  72.     D  - A door.  Press the spacebar to open the door.
  73.  
  74.     S  - A switch.  Press the spacebar to activate the switch.
  75.  
  76.     W  - A walkthrough switch.  Walking over the Line activates the 
  77.            switch.
  78.  
  79.     G  - A gun switch.  Shoot the Line to activate the switch.
  80.  
  81.     R  - Repeatable.
  82.  
  83.     1  - Works only once.
  84.  
  85. Each LineDef has a "Sector Tag".  This is NOT a reference to which Sector
  86. the Line is in, nor is it a reference to any specific Sector.  What it
  87. IS, is a sort of key-code for when a switch is activated.  A Sector that
  88. has a matching "LineDef Tag" will be activated.  In parentheses next to
  89. the Sector Tag will be the number of the Sector that shares the Tag.
  90. Each LineDef also has a 1st SideDef number and 2nd SideDef number.  
  91. A -1 will be displayed if there is no SideDef for these.
  92.  
  93. SideDefs
  94.  
  95. On each Line, the side with the normal Vector is the 1st Side, and the
  96. other is the 2nd Side.  A Line that is two-sided (2s) MUST have a 2nd
  97. SideDef, or there will be trouble when you play near that line.
  98. Each SideDef has three textures associated with it:
  99.  
  100.     Normal texture - This is what you see when you look at a normal wall.
  101.              As you've probably noticed while scrolling through
  102.              the texture sprites, they are not all the same size.
  103.              How do you know what size to use?  Well, a big door
  104.              like BIGDOOR3 will fit on a wall that measures 128
  105.              wide by 128 high.  A switch panel like SW1COMP is
  106.              64 units wide, and a "door-side-strip" like
  107.              DOORBLU is 8 units wide.  If you make a wall higher
  108.              or wider than the texture, the texture will repeat
  109.              across the area.  Making the wall smaller than the
  110.              texture crops off the edges.
  111.  
  112.     Upper texture  - This is what you see on a door before it raises up.
  113.              You can also see this texture above a Sector that      
  114.              has a ceiling height lower than your current Sector,
  115.              like say, above a window.
  116.  
  117.     Lower texture  - This is what you see on a lift before it lowers.
  118.              You can also see this texture below a sector that
  119.              has a floor height higher than your current Sector,
  120.              like the face of a step, or below a window.
  121.  
  122.     Tex. X offset  - Moves the position of the texture on the wall
  123.              horizontally.  Use this to shift the texture to just
  124.              the right position.
  125.  
  126.     Tex. Y offset  - As above, but used to shift the texture vertically.
  127.  
  128.     Sector number  - Shows what sector this SideDef is assigned to.
  129.              The Sector assignment controls the height of the
  130.              floor and ceiling, lighting, etc.
  131.  
  132.  
  133.  
  134.                                                                               Part 2, Page 3
  135.  
  136. Okay, let's get started on a new level E1M1.  Start up DEU and type in
  137.  
  138. C 1 1
  139.  
  140. and hit Enter to Create a new E1M1 map.  Your map screen appears, in 
  141. Thing mode, with the mouse cursor in the middle of the screen.  Hit
  142. the F9 key and choose 1 - rectangle.  Enter 384 for both the width
  143. and the height.  You now have a square room built of four Lines, each
  144. Line with a Normal Impassable LineDef and a texture of STARTAN3 for
  145. each 1st SideDef.  Each 1st SideDef is also assigned to Sector #0.
  146. Hit the "S" key to see the Sector info.  Hit Enter to modify the Sector
  147. info, and change the Ceiling height to 128.  Now hit "L" to get back to 
  148. Line mode.  LineDef #0 should be selected (the top Line of the box).
  149. If it is not, select it now.  Hit the F10 key, and choose number
  150. 4 - Split LineDef (add new Vertex).  This will add a new Vertex in the
  151. middle of the wall, splitting the wall Line into two separate LineDefs.
  152. Select either one of the two top Lines (LineDef #0 or LineDef #4) and
  153. use the F10 key to split the LineDef again.  Hit the "V" key to get
  154. into Vertex mode, and you should see something like this:
  155.  
  156.             x──────x──────x──────x
  157.             │                    │
  158.             │                    │
  159.             │                    │
  160.             │                    │
  161.             │                    │
  162.             │                    │
  163.             x────────────────────x
  164.  
  165. The top Line of the box is split into three sections, and we are going 
  166. to make the center section a Door.  A note here about Doors and Sectors;
  167. any time the map has a change in the environment, such as a height change,
  168. a lighting change, normal floor to slime pit, etc., the way the environment
  169. changes is by making a new Sector.  So, our Door will have a Sector all
  170. to itself.  Insert two new Vertices, directly above the two center Vertices
  171. in our top Line.  Mark those two new Vertices and the two center Vertices,
  172. in a clockwise manner, and hit Insert to draw the LineDefs between them.
  173. Once you have added LineDefs to each side of our new, smaller box, Mark
  174. all four Lines and hit the Insert key to group these Lines in a new Sector.
  175. Hit the "V" key to get into Vertex mode, and your map should look like this:
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.                      x──────x
  183.                      │      │
  184.                      │      │
  185.             x──────x──────x──────x
  186.             │          │         │
  187.             │ connecting wall    │
  188.             │                    │
  189.             │                    │
  190.             │                    │
  191.             │                    │
  192.             x────────────────────x
  193.  
  194. Hit "L" to get into Line mode and select the connecting wall between the
  195. rooms.  Notice that it now has a LineDef Flag of 2s, making it a two-sided
  196. wall (you could now walk through it), it has both a 1st and 2nd SideDef,
  197. with no textures assigned, and the 1st SideDef (pointing into the big room)
  198. is assigned to Sector #0, the 2nd SideDef is assigned to Sector #1.
  199. Sector #1 is going to be our door Sector.  Hit the "S" key to get into
  200. Sector mode, select the small sector (#1), and change the ceiling height
  201. to 0.  Zero?  Yes, zero!  By giving the Sector a ceiling height that is the
  202. same as the floor height, our Door starts off in the lowered postion.
  203.  
  204.  
  205.                                                                               Part 2, Page 4
  206.  
  207. Again get into Line mode and select the connecting wall between the rooms.
  208. Hit Enter to modify the LineDef, choose 1 - Edit the LineDef, and choose
  209. 2 - Change Type.  For a LineDef Type, choose 2 - Doors..., then pick the
  210. first option, 1 - DR Open Door (closes after 5 seconds).  This changes
  211. that particular Line into a Door that you can open by walking up to it
  212. and hitting the spacebar.  Where does this door go?  Good question.
  213.  
  214. Let's add another room to the north of the doorway.  Scroll the map down,
  215. or zoom it out so that you have enough room above our two Sectors.
  216. Get into Vertex mode and insert four new Vertices for our new room.
  217. Mark the four new Vertices and the two Vertices from the door room,
  218. and hit Insert to add LineDefs, making the room look like this:
  219.  
  220.             x────────────────────x
  221.             │                    │
  222.             │                    │
  223.             │      Sector 2      │
  224.             │                    │
  225.             │ new connecting wall│
  226.             │          │         │
  227.             x──────x──────x──────x
  228.                      │      │
  229.                      │ Sec 1│
  230.             x──────x──────x──────x
  231.             │                    │
  232.             │                    │
  233.             │                    │
  234.             │      Sector 0      │
  235.             │                    │
  236.             │                    │
  237.             x────────────────────x
  238.  
  239. Mark all six of the Lines the top room, and hit Insert to group them into
  240. a new Sector (#2).  Change the ceiling height of the new Sector to 128.
  241. In Line mode, notice that the new walls have impassable LineDefs, and
  242. textures of STARTAN3.  Notice that the new connecting wall has been
  243. changed to 2s (two-sided), and been given a 1st SideDef in Sector #1,
  244. and a 2nd SideDef in Sector #2.  Notice also that the normal Vector points
  245. into the small room.  In order for the Door to be opened from the top 
  246. room, that Vector has to point into the top room.  Select that new connecting
  247. wall, and use the F10 key to Flip the LineDefs.  This points the Vector
  248. into the top room, while also keeping the Sector assignments legal.
  249. Modify the new connecting wall to have a LineDef Type of DR Open Door.
  250.  
  251. Now let's add some textures to the door faces.  Select the Door Type
  252. connecting wall Lines and give them a 1st SideDef Upper texture of
  253. BIGDOOR3.  Do the same for the 2nd SideDef of those two Lines.  Leave
  254. the Normal texture for these walls blank, so we can see through the
  255. doors when they slide up.  Select the two side walls of the small room
  256. (Sector #1).  Modify the LineDef flags to include "Lo", unpegging the
  257. lower texture for these walls.  This lets the Door slide up without
  258. pulling up the walls with it.
  259.  
  260. That's really all there is to adding a Door between two rooms.  Insert
  261. a Player 1 Start Thing in the bottom room, and modify the north wall of
  262. the top room to be a Type S- End level switch, save your new level,
  263. and try it out!  I've included my own version of this level, called
  264. RICHE1M1.WAD, with some nice textures and various Things added.
  265.  
  266. Stay tuned for part 3 - Switches, tripwires, and lifts.
  267.                                                                                                 
  268.  
  269.  
  270.  
  271.                                                                               Part 2, Page 5
  272.  
  273. A note about Sectors: 
  274. Sectors really like to be composed out of enclosed spaces.  If you
  275. try to make an area a Sector without marking ALL the lines that enclose that
  276. area, weird things could happen to your Sector and LineDef conditions.
  277. What to do when this happens?  Well, you HAVE been saving your work with
  278. a new filename after every little step, haven't you?  Thought so...
  279. If not, it IS possible to edit the Sector designations for both sides
  280. of every LineDef, but it's a big pain in the butt.  Why not do it right
  281. the first time?  Experiment with this one to see what I mean.
  282.  
  283. A further note:
  284. The really excellent program DEU was written by Raphael Quinet and
  285. Brendon J. Wyber.  They deserve beaucoup applause for making it
  286. possible for us DOOMheads to create our own Hell.  Unfortunately,
  287. DEU ver 5.0 still has many un-implemented features, and a few (very few)
  288. little buggies.  One of these bugs can be fixed by using Colin Reed's
  289. DOOM Node Builder program, BSP.EXE, found on CIS in Gamers LIB 7,
  290. as DMBSP.ZIP.  I became very frustrated trying to design a good looking
  291. window for one of my DOOM levels, kept getting weird slices out of the
  292. sides of the window, and Colin's BSP fixed it right up.  Thanks Colin!
  293.  
  294. Blackfist
  295. a.k.a. Rich Dersheimer
  296. CIS 72123,1521
  297.  
  298. As always, DOOM is copyright (c) 1993 by id Software, Inc., and
  299. DOOM is also a trademark of id Software, Inc.
  300.