Cranes



Cranes are yet another of Duke 3D's many fascinating features. By their ability to pick up and drop any graphic sprite (whether fixed or animated) at predetermined locations, they offer many possibilities to the map designer and can bring another tactical element to the game when used in Dukematch levels. Oddly enough, very little has been written about cranes (the BuildDocs omit them entirely) although they are used in the popular E1L4 level: Toxic Dump. While cranes operate all by themselves, conveyor belts will be needed in most instances for moving objects around.

Start by making a large outer sector and two smaller inner void sectors as shown here. Go to 3D mode right away and make the ceiling height about 70 clicks above the floor. Go back to 2D mode and draw the remaining sectors by adding new vertices where required and also by splitting the existing ones. Raise the floor of sectors 2, 3, 4, 5, 6, 7 and 9 high enough so that Duke can't jump up to them (30 clicks in the example map) and raise the floor of sectors 1 and 8 a few clicks to create a platform. Also, raise the ceiling height of sectors 1, 2, 3, 4, A, and B by 4 clicks above the previously set ceiling height. These will be the crane ceiling "track" sectors.


Using the 'S' key, place two sprites at the locations shown in the picture on the left. Next, go to 3D mode and with the cursor pointing at the sprite in sector 1, hit 'V' twice. Select tile #1221, a vertical pole appears. As far as the cranepole sprite is concerned, you can bring it all the way to the ceiling or the the floor or even just leave it where it is, this has no effect on its function in gameplay. Aim the cursor at the second sprite, hit 'V' twice, select tile #1222 and the crane appears. This sprite has to be on the ceiling to work properly so hit 'Ctrl-PgUp' while aiming at it. Go back to 2D mode, point the mouse cursor on the cranepole sprite, hit 'B' to make it "blocking" and using 'Alt-H', assign a unique hitag to it (1 in this case). Change the hitag of the crane sprite to the same value as its target cranepole and use the '<' and '>' keys to change the angle so it points in the direction the crane will travel. Repeat this process for the crane-cranepole pair in the picture on the right using different hitags. The lotag values of these sprites have no effect. Just make sure the crane sprites sit exactly in the center of their "track" sector.


Cranepole sprite Crane sprite


At this point, feel free to take a little time to change the ceiling "track" texture (tile #353 in the top right picture), the ceiling track inner side walls texture (tile #288). If necessary, use the 'F' key to flip the ceiling texture and since the crane sprites were previously centered in their respective sectors, they can be used as a reference to center the ceiling texture using the 'Shift-4' and 'Shift-6' keys.



Now, in 2D mode, insert SectorEffector sprites in sectors 2, 4, 5, 6, 7, 8 and 9 where the conveyor belts will be, hit the 'Alt-T' key and change their lotag value to 24. Change the angle of these sprites to point in the direction of belt displacement as shown in the pictures left and below, there are 7 in all. Also, place 4 NukeBarrel sprites at various locations on the conveyor belts. In this example map, they have been made to be "blocking" but this is not necessary.
While cranes can pick up any graphical sprite, some behave strangely and won't go all the way to the floor when dropped. From here, it's a matter of trial and error if you want to use other sprites. NukeBarrels work well and they spill a puddle of radioactive sludge when shot (not on moving floors or in mid-air though).


Go to 3D mode and change the floor texture of the sectors to tile #1156. It might be necessary at this point to make the floors Relatively Aligned by using the 'R' key while pointing at them with the mouse cursor. Make sure that the lines in the belt are oriented the right way and that, once in the game, the belts are moving in the same direction as the floor. It might be necessary to use the 'F' key to align the textures properly. For a detailed description of this process, consult the floor texture alignment tutorial.



A few words on the behavior of cranes:



Limitations of cranes:



Page written by:


Download this page locally

Download the Crane map




Duke Nukem 3D is copyright ©1996 , All Rights reserved.

THIS PAGE IS NOT MADE BY OR SUPPORTED BY 3D REALMS

Copyright ©1996 Jean-Francois Groleau, All Rights reserved.
Go back to my Duke FAQ BUILD page
Go back to my Duke FAQ BUILD page Text-Only