Zoom Tube Waypoint

From SRB2 Wiki
Jump to navigation Jump to search

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.

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

  Thing types – Miscellaneous invisible [view]
Water Ambiences A - HDisco AmbienceVolcano AmbienceMachine AmbienceSlope VertexTeleport DestinationAlternate View PointZoom Tube WaypointPush PointPull PointBlast Linedef ExecutorFan Particle GeneratorObject Angle AnchorPolyObject AnchorPolyObject Spawn PointPolyObject Spawn Point (Crush)Skybox View Point