Zoom Tube Waypoint
Thing type 753, Zoom Tube Waypoint, is a type of Thing that is used for defining the path of a zoom tube, rope hang or moving PolyObject. Waypoints are grouped together in sequences with a fixed order. Each sequence of waypoints belong to one instance of a zoom tube, rope hang or moving PolyObject. If several of these exist on the same map, one sequence must be placed for each. The effect then transports the player or PolyObject from one waypoint to another in the order of the sequence.
Both the number of the sequence and the order in that sequence are set by the waypoint's Angle. To calculate the appropriate Angle, multiply the sequence number by 256 and add the step number in that sequence. Note that the first step or sequence is number 0, not 1. For example, the third waypoint in the eleventh sequence has a step number of 2 and a sequence number of 10. The Angle would therefore be 2 + (256 × 10), which equals 2562. Because each multiple of 256 increments the sequence number, the maximum step number for a sequence is 255; therefore each sequence may contain 256 waypoints at most.
WARNING: If a Zoom Tube Waypoint has an Angle that's greater than 32767, then Zone Builder(binary) will be unable to open the map that contains that Zoom Tube Waypoint. However, SLADE & SRB2 will still be able to properly open that map, though SLADE will interpret all angles of >32767 as negative numbers. As such, you may wish to not have a Zoom Tube Waypoint Sequence of 128 or higher.
The table below gives example values for waypoint Angles depending on the waypoint sequence and step numbers (both starting from 0):
Sequence # | Step # | ||||||
---|---|---|---|---|---|---|---|
0 | 1 | 2 | 3 | 4 | 5 | 255 | |
0 | 0 | 1 | 2 | 3 | 4 | 5 | 255 |
1 | 256 | 257 | 258 | 259 | 260 | 261 | 511 |
2 | 512 | 513 | 514 | 515 | 516 | 517 | 767 |
3 | 768 | 769 | 770 | 771 | 772 | 773 | 1023 |
|