Stacking multiple FOFs

From SRB2 Wiki
Jump to: navigation, search

Many people have problems with FOFs. One of the key problems is that they are unsure of how to put more than one FOF on the same area. This tutorial shows how to do that.


Like a regular FOF, simply set up the two control sectors. For the first control sector, set the floor and ceiling heights to that of where the lower FOF is supposed to be inside the level. After this has been done, proceed to the second control sector. Do the same thing, only with the floor and ceiling heights of where the higher FOF is supposed to be.

Click image to enlarge.
Fof stack.png
One of the two linedefs here has
the mouse hovering over it.
Note how the sector has the same
color as the highlighted linedef.

Appropriate tagging

Now that the FOF heights have been set up, it's time to tag them. First, give the target sector an unused tag. Let's assume that this is a map with no other special effects on it, and use "1". Next, tag the linedefs of both control sectors with the effect to "1" as well. That's it. The two FOFs are now set up. To stack two FOFs in the same target sector, simply give them the same tag.

Final notes

It is possible to stack 3, 4, 5, or any other amount of FOFs on top of each other with the same method. There is no limit to to the number of FOFs you can have, but take care not to use too many; the game can only display up to 40 planes (floors or ceilings) belonging to these FOFs at a time. Also, any kind of FOF can be used, and any combination of different FOF types can be used. There is no limit to the combinations of FOFs you can use. The only reason for using two FOFs of the same type in the tutorial here is to make the explanation simpler.


Example WAD: Fof_stack_example.wad