Zoom tube tutorial
|This article or section should contain one or more images. Please spruce up the article by adding an image.|
This is a tutorial on how to set up zoom tubes. A fully working zoom tube consists of several components: The Zoom Tube Start and Zoom Tube End sector special define both entrance and exit to a zoom tube. Zoom Tube Waypoints determine the route of the zoom tube and are placed at every turn. The Zoom Tube Parameters linedef special tells the the game which components belong together to form a zoom tube and determines the speed that the player travels with.
Zoom tube start and end
These sector specials define start and end of a zoom tube. Both sectors should have the same tag. When a player enters a sector with either special, they are forced into a spin and are pushed to the next waypoint. Note that a zoom tube can be traveled through in both directions; the Zoom Tube Start makes the player travel the zoom tube from the first waypoint to the last, the Zoom Tube End makes the player travel from the last to the first. If you want to make a one-way zoom tube, you can leave the Zoom Tube End out.
Zoom tube waypoints
These tell the game where the zoom tube goes by making the player spin from waypoint to waypoint until the last is reached. They are set up using two parameters: The sequence number groups multiple waypoints to one zoom tube, and the waypoint number determines the order they are traveled through. In other words, if you have two zoom tubes, each of them should have a different waypoint sequence, and each waypoint in either sequence should have a different waypoint number. If you enter a zoom tube, the player will be transported to the waypoint with the lowest waypoint number, then to the one with the next-lowest, and so forth. It will however be totally separate from the waypoints of the other zoom tube, because it has a different sequence.
Both values are specified using the Angle of the waypoint Thing: The sequence number is always a multiple of 256, and the waypoint numbers are simply added on top of that. Both values start with 0, so the first waypoint in the first sequence would have an Angle of 0. For each consecutive waypoint, add 1 to the Angle. If you want to make a second zoom tube, start with an Angle of 256, then continue with 257, 258 and so forth. A third zoom tube would start at 512, a fourth one with 768, and a tenth one with 2304 (which is calculated as (10-1)*256).
Zoom tube parameters
This linedef special assigns the sector specials to the waypoints and specifies the speed. Set it up by making a control sector and giving one of its linedefs a type of 3. The tag should be the same as the tag used for the sector specials. The X distance between the two vertices determines speed, the Y distance should be the sequence number. That means that for a zoom tube with a sequence number of 0, the linedef would simply go straight from left to right, and for each consecutive zoom tube, it would become slightly more diagonal.
- Example WAD: ex_ld003_zoomtubeparameters.wad