ZDoom Line Specials

181:Plane_Align

Name

Plane_Align — slopes a floor and/or ceiling.

Synopsis

Plane_Align (floor_slope, ceiling_slope, lineid);
Plane_Align (
  floor_slope,    // How to slope the floor
  ceiling_slope,  // How to slope the ceiling
  lineid          // Line ID for this line
);

Parameters

floor_slope
A number (0, 1, or 2) that determines how to slope the floor beside the line.
ceiling_slope
A number (0, 1, or 2) that determines how to slope the ceiling beside the line.
lineid
The identification number used to identify this line for certain specials and ACS commands. If you just want to create a slope, set this to zero. This parameter is present so that you can both slope a sector and assign an ID to the line, as if you had used Line_SetIdentification.

ACS

Plane_Align cannot be used from inside a script. It must be placed on a line. It takes effect only when the map is loaded, so you cannot use SetLineSpecial to add Plane_Align to a line after the map is started to change a sector's slope during the middle of a game.

Remarks

Plane_Align takes two parameters so that you can control the slope of the floor and ceiling independantly. For the floor, the three different values you can use are as follows:

ValueSlope Type
0 Do not slope floor
1 Slope the floor in front of the line so that it meets the floor on the back of the line.
2 Slope the floor in back of the line so that it meets the floor in front of the line.

The values used to slope the ceiling are exactly the same as the values used for floor slopes:

ValueSlope Type
0 Do not slope ceiling
1 Slope the ceiling in front of the line so that it meets the ceiling on the back of the line.
2 Slope the ceiling in back of the line so that it meets the ceiling in front of the line.

Most editors display a small line attached to the middle of a linedef to indicate which side is the "front."

You can think of Plane_Align as "pulling" the sector you want to slope so that it slants to meets the sector on the other side of the line seamlessly. For example, if you give a line the special Plane_Align (1, 0), the part of the front sector's floor that is farthest from the line will still be at the height you specify in the editor, but at the line the front sector's floor will be raised or lowered so that there is no difference between the floor heights in front of and behind the line.

It is perhaps easiest to just experiment. Plane_Align is easier to use than it is to describe.

First Available In

ZDoom 1.23 beta 8

See Also

Line_SetIdentification