home *** CD-ROM | disk | FTP | other *** search
- //
- // Simple test for a single moving platform
- //
- // The room is a single L-shape with a pit down the middle with
- // lava in it. Its layout is not really important, but serves to
- // help illustrate the use of moving objects.
- //
- // The level contains one moving object: A platform which floats
- // over the pit and moves quickly from one end to the other.
- //
- {
- //
- // Define the actual room itself. Basically a traditional inverted L.
- //
- "classname" "worldspawn"
- "wad" "F:\QUAKEAPP\QUEST\GFX\MEDIEVAL.WAD"
- "light" "200"
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -128 1 ) ( 1 -128 1 ) ( 1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 676 -1 1 ) ( 676 1 1 ) ( 676 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 128 1 ) ( -1 128 1 ) ( -1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 1 1 ) ( 612 -1 1 ) ( 612 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -128 1 ) ( 1 -128 1 ) ( 1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 -1 1 ) ( -412 1 1 ) ( -412 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 128 1 ) ( -1 128 1 ) ( -1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -476 1 1 ) ( -476 -1 1 ) ( -476 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 128 1 ) ( 1 128 1 ) ( 1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 -1 1 ) ( 612 1 1 ) ( 612 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 192 1 ) ( -1 192 1 ) ( -1 192 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -192 1 ) ( 1 -192 1 ) ( 1 -192 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 -1 1 ) ( 612 1 1 ) ( 612 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 1 1 ) ( -156 -1 1 ) ( -156 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 192 ) ( 1 -1 192 ) ( -1 -1 192 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -128 1 ) ( 1 -128 1 ) ( 1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 -1 1 ) ( 612 1 1 ) ( 612 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 128 1 ) ( -1 128 1 ) ( -1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 128 ) ( 1 1 128 ) ( -1 1 128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -128 1 ) ( 1 -128 1 ) ( 1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 -1 1 ) ( 612 1 1 ) ( 612 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -200 1 1 ) ( -200 -1 1 ) ( -200 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -64 1 ) ( -1 -64 1 ) ( -1 -64 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( 612 -1 1 ) ( 612 1 1 ) ( 612 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 128 1 ) ( -1 128 1 ) ( -1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -64 1 ) ( 1 -64 1 ) ( 1 -64 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 372 1 1 ) ( 372 -1 1 ) ( 372 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 128 1 ) ( -1 128 1 ) ( -1 128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( 372 -1 1 ) ( 372 1 1 ) ( 372 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 64 1 ) ( 1 64 1 ) ( 1 64 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -128 1 ) ( 1 -128 1 ) ( 1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 64 1 ) ( -1 64 1 ) ( -1 64 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -364 -1 1 ) ( -364 1 1 ) ( -364 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1320 1 ) ( 1 -1320 1 ) ( 1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -140 -1 1 ) ( -140 1 1 ) ( -140 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 1 1 ) ( -156 -1 1 ) ( -156 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1320 1 ) ( 1 -1320 1 ) ( 1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 -1 1 ) ( -412 1 1 ) ( -412 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -484 1 1 ) ( -484 -1 1 ) ( -484 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 128 ) ( 1 -1 128 ) ( -1 -1 128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1336 1 ) ( 1 -1336 1 ) ( 1 -1336 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 -1 1 ) ( -156 1 1 ) ( -156 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1320 1 ) ( -1 -1320 1 ) ( -1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -128 ) ( 1 1 -128 ) ( -1 1 -128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 144 ) ( 1 -1 144 ) ( -1 -1 144 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1320 1 ) ( 1 -1320 1 ) ( 1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 -1 1 ) ( -156 1 1 ) ( -156 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 128 ) ( 1 1 128 ) ( -1 1 128 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1320 1 ) ( 1 -1320 1 ) ( 1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -412 1 1 ) ( -412 -1 1 ) ( -412 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( -364 -1 1 ) ( -364 1 1 ) ( -364 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1320 1 ) ( 1 -1320 1 ) ( 1 -1320 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 -1 1 ) ( -156 1 1 ) ( -156 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( -364 1 1 ) ( -364 -1 1 ) ( -364 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1128 1 ) ( -1 -1128 1 ) ( -1 -1128 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -128 ) ( 1 -1 -128 ) ( -1 -1 -128 ) city5_8 0 0 0 1.0000 1.0000
- ( -156 -1 1 ) ( -156 1 1 ) ( -156 1 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -128 1 ) ( -1 -128 1 ) ( -1 -128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) city5_8 0 0 0 1.0000 1.0000
- ( -1 -1128 1 ) ( 1 -1128 1 ) ( 1 -1128 -1 ) city5_8 0 0 0 1.0000 1.0000
- ( -200 1 1 ) ( -200 -1 1 ) ( -200 -1 -1 ) city5_8 0 0 0 1.0000 1.0000
- }
- //
- // Fill in the bottom of the pit with metal
- //
- {
- ( 1 1 -188 ) ( 1 -1 -188 ) ( -1 -1 -188 ) metal2_2 0 0 0 1.0000 1.0000
- ( -1 -68 1 ) ( 1 -68 1 ) ( 1 -68 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( 380 -1 1 ) ( 380 1 1 ) ( 380 1 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( 1 68 1 ) ( -1 68 1 ) ( -1 68 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( -368 1 1 ) ( -368 -1 1 ) ( -368 -1 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( 1 -1 -196 ) ( 1 1 -196 ) ( -1 1 -196 ) metal2_2 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -188 ) ( 1 -1 -188 ) ( -1 -1 -188 ) metal2_2 0 0 0 1.0000 1.0000
- ( -364 1 1 ) ( -364 -1 1 ) ( -364 -1 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( 1 -1 -196 ) ( 1 1 -196 ) ( -1 1 -196 ) metal2_2 0 0 0 1.0000 1.0000
- ( -1 -1128 1 ) ( 1 -1128 1 ) ( 1 -1128 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( 1 64 1 ) ( -1 64 1 ) ( -1 64 -1 ) metal2_2 0 0 0 1.0000 1.0000
- ( -200 -1 1 ) ( -200 1 1 ) ( -200 1 -1 ) metal2_2 0 0 0 1.0000 1.0000
- }
- //
- // Put lava on top of the metal
- //
- {
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) *lava1 0 0 0 1.0000 1.0000
- ( -1 -64 1 ) ( 1 -64 1 ) ( 1 -64 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( 372 -1 1 ) ( 372 1 1 ) ( 372 1 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( 1 64 1 ) ( -1 64 1 ) ( -1 64 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( -364 1 1 ) ( -364 -1 1 ) ( -364 -1 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( 1 1 -172 ) ( 1 -1 -172 ) ( -1 -1 -172 ) *lava1 0 0 0 1.0000 1.0000
- }
- {
- ( 1 1 -172 ) ( 1 -1 -172 ) ( -1 -1 -172 ) *lava1 0 0 0 1.0000 1.0000
- ( -364 1 1 ) ( -364 -1 1 ) ( -364 -1 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( 1 -1 -192 ) ( 1 1 -192 ) ( -1 1 -192 ) *lava1 0 0 0 1.0000 1.0000
- ( -1 -1128 1 ) ( 1 -1128 1 ) ( 1 -1128 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( 1 64 1 ) ( -1 64 1 ) ( -1 64 -1 ) *lava1 0 0 0 1.0000 1.0000
- ( -200 -1 1 ) ( -200 1 1 ) ( -200 1 -1 ) *lava1 0 0 0 1.0000 1.0000
- }
- }
- //
- // Position the player at the western end of the L room (the short end)
- //
- {
- "classname" "info_player_start"
- "origin" "420 0 -92"
- "angle" "174"
- }
- //
- // Add light so we can see all the cool stuff in here
- //
- {
- "classname" "light"
- "origin" "-308 -1136 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "-308 -744 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "-308 -360 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "-308 0 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "-188 0 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "84 0 0"
- "light" "255"
- }
- {
- "classname" "light"
- "origin" "428 0 0"
- "light" "255"
- }
- //
- // Define the single moving platform. A cube of metal, it moves from
- // one end of the L to the other, changing direction in the middle.
- //
- // It moves rather quickly; 192 is about the same speed as a running
- // player.
- //
- // It starts initially at the west (short) end of the L, the same
- // as where the player sits.
- //
- {
- "classname" "func_train"
- "target" "westpos"
- "sounds" "0"
- "speed" "192"
- {
- ( -244 1 1 ) ( -244 -1 1 ) ( -244 -1 -1 ) metal1_8 0 0 0 1.0000 1.0000
- ( -132 -1 1 ) ( -132 1 1 ) ( -132 1 -1 ) metal1_8 0 0 0 1.0000 1.0000
- ( -1 -60 1 ) ( 1 -60 1 ) ( 1 -60 -1 ) metal1_8 0 0 0 1.0000 1.0000
- ( 1 60 1 ) ( -1 60 1 ) ( -1 60 -1 ) metal1_8 0 0 0 1.0000 1.0000
- ( 1 -1 -144 ) ( 1 1 -144 ) ( -1 1 -144 ) metal1_8 0 0 0 1.0000 1.0000
- ( 1 1 -132 ) ( 1 -1 -132 ) ( -1 -1 -132 ) metal1_8 0 0 0 1.0000 1.0000
- }
- }
- //
- // The rules are as follows: The platform starts at the west end (westpos),
- // moves to the center (centerpos1), then to the north end (northpos), and
- // last to the center again (centerpos2). There are two center positions
- // because each position tells the platform where to go next, so one is
- // needed to tell it to go north, and the other to tell it to go west.
- //
- // If the platform path is defined to go through a wall, the platform
- // WILL GO THROUGH THE WALL. Unfortunately the player will not, which
- // is often painful. :)
- //
- {
- "classname" "path_corner"
- "origin" "-336 -64 -150"
- "targetname" "centerpos1"
- "target" "northpos"
- }
- {
- "classname" "path_corner"
- "origin" "-336 -64 -150"
- "targetname" "centerpos2"
- "target" "westpos"
- }
- {
- "classname" "path_corner"
- "origin" "256 -64 -150"
- "targetname" "westpos"
- "target" "centerpos1"
- }
- {
- "classname" "path_corner"
- "origin" "-336 -1120 -150"
- "targetname" "northpos"
- "target" "centerpos2"
- }
-