This is theoretically possible, and I'll probably try to do that after current bugs are fixed. Thought about it as well, although what I was going to do is just marking floor/ceiling of the receiving sector to follow (this will enable portals on elevators without dynamically adjusting the gap). Oh, also 2nd argument is reserved for non-UDMF maps (it's line ID).Gez wrote:Question on feasibility: would it be possible to have vertical offsets for portals? Let's say we use the second parameter of the special for that. Suppose two identical doorways (as far as length and height are concerned) but one has its floor and ceiling both 128 units above the other. The lower linedef would have 156, 1, 128, and the upper linedef would have 156, 1, -128. If it's possible to connect with portals sectors at different heights, very interesting effects could be achieved.
Update: latest commit/binary fixes using things/lines through the portal and adds CVars for limits (r_mirror_recursions, r_portal_recursions for rendering, synchronized sv_portal_recursions for physics).