home *** CD-ROM | disk | FTP | other *** search
/ Doom Extras / DExtras.iso / accessor / dos / deutut / deugp3.txt < prev    next >
Text File  |  1994-04-07  |  11KB  |  196 lines

  1.                                                                               Part 3 - Page 1
  2.     
  3.     B E G I N N E R S   G U I D E   T O   D E U
  4.                                                                      
  5. Part 3 - Switches, Tripwires, and Lifts
  6.  
  7. This part of the Guide will cover various types of switches used
  8. in DOOM, and how to make Sectors that move up and down.  These Sectors
  9. are sometimes called lifts, elevators, platforms, drawbridges, etc.
  10. I've included a PCX file (DEUGP3.PCX) with this section of the guide.
  11. I'll refer to this PCX later, so it would be a good idea to make a
  12. printout of it now.  Also included is a PWAD file (DEUGP3.WAD) of the
  13. completed level we will build in this lesson.
  14.  
  15. Start up DEU and load in your "three Sectors and a door" level that
  16. we constructed in Part 2.  Get into Line mode by pressing "L".  In
  17. the lower room (Sector #0), select the eastern wall by moving the
  18. mouse cursor across it.  Split this wall into two sections by hitting
  19. the "F10" key, then choosing 4 - Split LineDef (add new Vertex).  The
  20. east wall should now be comprised of two Lines.  Select each of those
  21. Lines and split each one in half again.  When you are done, the east
  22. wall should have four Lines, each with a LineDef Flag of Im, a Type
  23. of 0 - Normal, and a Sector Tag of 0 (none).  Each LineDef should have
  24. a 1st SideDef with the same Normal texture that the wall started with,
  25. no upper or lower textures, and be a part of Sector #0.  The LineDefs 
  26. should not have a 2nd SideDef (you'll never see the other side of the
  27. wall, so why bother?)
  28.  
  29. Now select one (JUST one) of the east-wall Lines, and we'll turn it
  30. into a switch that opens our door.  Hit Enter to modify the Line,
  31. and choose 1 - Edit the LineDef.  Then choose 2 - Change Type, and
  32. 2 - Doors.  From the list of door types, pick 5 - SR Open door (closes
  33. after 5 seconds).  This turns the Line into a repeating switch that
  34. opens a door, which will then close after 5 seconds.  How does the
  35. Line know which door to open?  Good question, grasshopper!
  36.  
  37. With that same Line selected hit the Enter key to modify the Line,
  38. then choose 1 - Edit the LineDef.  Choose 3 - Change Sector tag, and
  39. enter a decimal value of 37.  Why 37?  Because I happen to be 37
  40. years old, that's why.  You see, it really doesn't matter what number
  41. goes here, all that matters is that whatever Sector you want the Line 
  42. to trigger has the same number for it's LineDef tag.
  43.  
  44. After you've entered the Sector tag number, hit the "S" key to get 
  45. into Sector mode.  Select the Sector that has our door in it (#1).
  46. Hit the Enter key to edit the Sector, and choose 7 - Change LineDef
  47. tag.  Enter in the number (you guessed it) 37.  Now this Sector will
  48. be activated by any switch that has a Sector tag of 37.  It is possible
  49. for a switch to activate more than one Sector, and for a Sector to
  50. be activated by more than one switch.  Notice that, while in Line mode,
  51. if you DON'T have the switch Line selected, it shows up on your screen
  52. in purple.  When you DO have the switch Line selected, the Sector it
  53. activates shows up on your screen in red.  Cool, huh?  In Sector mode,
  54. selecting a Sector that has a valid LineDef tag lights up the Line
  55. that activates it, in red.  An unselected Sector with a valid LineDef
  56. shows up in green.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                                                                               Part 3 - Page 2
  69.  
  70. Let's add a distinctive texture to our switch Line, so we know where
  71. the switch is.  In Line mode, select the Line, and hit Enter to modify it.
  72. Choose 2 - Edit the 1st SideDef.  Choose 1 - Edit Normal Texture.  Pick
  73. one of the switch textures, SW1STRTN matches the STARTAN texture our Lines
  74. started with.  To make the Line fit the size of the texture, go into Vertex
  75. mode (the "V" key) and adjust the two Vertices of our switch Line to
  76. be 64 units apart.
  77.  
  78. So, now we have a switch that opens our door.  The door can also be
  79. opened by walking up to it and pressing the spacebar.  Now let's add
  80. a tripwire that opens the door.  "What's a tripwire?", you may ask.
  81. Well, remember back in E1M1, when you went past those two pylon light
  82. pole thingies just before the exit room, and then when you went back
  83. into the zig-zag slime pool room you noticed one of the walls
  84. had dropped to reveal a secret tunnel leading to an alcove with a
  85. shotgun?  The wall that dropped was activated by a tripwire.  (The
  86. pylons had nothing to do with it, they're just there as a visual clue).
  87. The tripwire in this case is a Line with LineDef flags of 2S (two sided)
  88. and Up (the upper texture is unpegged), and has a LineDef type of 
  89. W1 Lower Floor >N (walking across the Line lowers the floor to it's 
  90. nearest neighbor's level), and a Sector tag of 1, which matches the
  91. LineDef tag of Sector #59 (the Sector that drops).  It has both a 
  92. 1st SideDef and a 2nd SideDef (all 2S lines MUST have both), but 
  93. neither one has a normal texture assigned, making the Line invisible
  94. at ground level.  Got it?  Good!
  95.  
  96. Before we add in the tripwire Line, let's make a few new Vertices in our
  97. lower room (Sector #0).  In Line mode, select the west wall Line, and 
  98. split it into four sections, just like we did with the east wall Line.
  99. Then, in Vertex mode, select the Vertice on each Line that is just
  100. below the north edge of the room.  Hit the Insert key to add a Line
  101. between those vertices.  Go to Vertex mode, and the screen should be 
  102. something like Figure 1 of the PCX file included with this lesson.
  103.  
  104. In Line mode, select the new Line you just added.  Modify the Line to
  105. give it only one flag - 2S, a LineDef Type of WR - Open Door, and Sector tag
  106. of 37 (there's that number again!).  Make sure that it has both a 1st
  107. SideDef and a 2nd SideDef, but no textures assigned to either one.
  108. You should also make the 1st and 2nd SideDef sector references Sector #0.
  109.  
  110. So now we have three ways to open our door - pushing the door itself,
  111. throwing the switch on the wall, or walking over the tripwire.  Now
  112. would be a good time to load our level into DOOM and give these three
  113. techniques a workout.  When you get back, we'll tackle movable Sectors.
  114.  
  115. Okay, once you are back in DEU, with our level loaded in and ready to
  116. edit, get into Line mode and put the mouse cursor in the lower left
  117. corner of our southern room.  Hit the "F9" key to insert an object inside
  118. the room.  Choose a rectangular object, with a width and height of 64.
  119. Then, with all four of our new Lines marked, hit the Insert key to
  120. make a new Sector.  Modify the Sector to give it a floor height of
  121. 64, and ceiling height of 128.  Give the Sector a LineDef tag of 50.
  122. Mark all four of the Lines again, and give them 1st SideDef lower textures.
  123. Don't give them upper or normal textures, or any 2nd SideDef textures at all.
  124. Figure 2 shows this new Sector added to our room.
  125.  
  126. Now select the Line on the east wall that contains the switch we used
  127. to open the door.  Change the Sector tag on this Line to 50, to match
  128. the Sector #3 LineDef tag.  Edit the LineDef, change the Type, pick
  129. Floors... and then choose 1 - S? Lower floor to match Ne. floor.  Plop
  130. a chainsaw Thing on top of our newest Sector, and try the level out!
  131.  
  132.                                                                  
  133.  
  134.                                                                               Part 3 - Page 3
  135.  
  136. When you are done playing with the chainsaw, get back into DEU, and 
  137. we'll add an "elevator" type Sector to our level.  Move the cursor to
  138. the middle of the upper room (Sector #2), and hit F9.  Choose rectangle,
  139. and make the dimensions 64 by 64.  Hit the Insert key to make the Lines
  140. into a new Sector.  Give the Sector a floor height of 64, and a ceiling
  141. height of 128.  Give it a LineDef tag of 60.  Mark each of the Lines
  142. in this Sector, and give them a LineDef type of WR Lower Lift, a Sector 
  143. tag of 60, and a 1st SideDef lower texture.
  144.  
  145. This makes the Sector a lift that lowers when the player walks off it.
  146. Of course, the lift starts off raised, so let's add something to lower 
  147. the lift when the player walks through the doorway.  We *could* just run
  148. a tripwire across two of the northern Sector Vertices, but adding Lines
  149. to Sectors can get kind of tricky.  A much easier way to lower the lift
  150. is to add a "trigger plate" Sector.  Position the cursor just above the
  151. doorway into the northern room, hit F9, choose rectangle, and use a
  152. width of 100 and a height of 10.  Hit the Insert key to make the lines
  153. into a Sector.  Make the Sector 128 in height.  Give the LineDefs a Type 
  154. of WR - Lower lift, and a Sector tag of 60.  Make sure the LineDefs are 2S, 
  155. and have a 1st and 2nd SideDef with no textures.  This Sector is our trigger 
  156. plate.  When the player walks over the plate, the lift will lower.  As 
  157. the player leaves the lift, it will lower again.  See Figure 3 for this.
  158.  
  159. You may have noticed that there are quite a few different types of
  160. floor, ceiling, and lift options.  Experiment with these for a while,
  161. and you'll get a feel for when and where a moving Sector will add just
  162. the right flavor to your own personal DOOM levels.  Have fun!
  163.  
  164. Blackfist (a.k.a. Rich Dersheimer)
  165. CIS 72123,1521
  166.  
  167. Soon to come: Part 4 - Pits, Windows, and Stairs.
  168.  
  169. A Note On Adding Lines To Sectors:
  170. Adding Lines to Sectors can be a very tricky process, 'cause DEU sometimes
  171. forgets which sectors are available.  There are some techniques that can
  172. be helpful with this - when you want to delete an area, try deleting the
  173. Sector, the Lines, and the Vertices.  If you just delete the Vertices, sure
  174. the Lines and Sector go away, but I don't think DEU completely deletes them.
  175. Also, try to keep your Sectors as single enclosed box-type areas.  I know
  176. the tripwire we put in the south room works, but it's much more elegant
  177. to divide the room into two Sectors.  You end up with lots of Sectors,
  178. but in the long run the level is much easier to work with.  Of course,
  179. this means that you actually have to PLAN out the level in advance, instead
  180. of "building on the fly", but the end result is worth it.  I've taken to
  181. designing a level in a paint program, printing it out, and working from
  182. the paper map.  This saves MUCH time that I used to spend fiddling with
  183. SideDef sector designations.  Also, please realize that the authors of
  184. DEU, Raphael Quinet and Brendon Wyber, have placed question marks, or
  185. the word "unknown" on several of the pick lists in DEU's menus.  One can
  186. assume that they are not 100% sure of how *everything* works in DOOM, but
  187. have done their best to describe how the program functions.  So, if your
  188. LineDefs aren't doing exactly what you expect, keep experimenting, and
  189. if you find something new, let the DOOM DEU-ers of the world hear about it!
  190.  
  191. DOOM is a trademark of, and is Copyright (c) 1993, by id Software, Inc.
  192.  
  193.  
  194.  
  195.  
  196.