
Doom Legacy

GZDoom
Thanks.
Moderator: Graf Zahl
Code: Select all
/****** Legacy linetypes ******/
273 = WALK|REP, FS_Execute(tag, 1)
274 = WALK, FS_Execute(tag)
275 = WALK, FS_Execute(tag, 1)
276 = USE|REP, FS_Execute(tag)
277 = USE, FS_Execute(tag)
278 = SHOOT|REP, FS_Execute(tag)
279 = SHOOT, FS_Execute(tag)
280 = 0, Transfer_Heights (tag, 12)
281 = 0, Sector_Set3DFloor(tag, 1, 0, 255)
282 = 0, Static_Init(tag, 1)
// No, I haven't actually looked at these in Legacy. But these look like they
// should give results equivalent to hardware Legacy rendering.
284 = 0, TranslucentLine (lineid, 128, 0)
285 = 0, TranslucentLine (lineid, 192, 0)
286 = 0, TranslucentLine (lineid, 48, 0)
287 = 0, TranslucentLine (lineid, 128, 1)
288 = 0, TranslucentLine(lineid, 255, 0)
289 = 0, Sector_Set3DFloor(tag, 1, 1, 255)
300 = 0, Sector_Set3DFloor(tag, 1, 1, 127)
301 = 0, Sector_Set3DFloor(tag, 2, 2, 127)
302 = 0, Sector_Set3DFloor(tag, 3, 6, 127)
303 = 0, Sector_Set3DFloor(tag, 3)
304 = 0, Sector_Set3DFloor(tag, 2, 2, 255)
305 = 0, Sector_Set3DFloor(tag, 3, 2)
306 = 0, Sector_Set3DFloor(tag, 1)
332 = 0, Sector_Set3DFloor(tag, 4)
It was a placeholder solution. Probably waiting for them to come up with an idea on how to implement it properly.Enjay wrote:I'm trying to remember how the effect was applied from a mapping point of view. Wasn't it something odd like you had to give the sector concerned a negative tag to the value of the depth of the water?
What they did in the end was removing the effect altogether!HOW TO PUT WATER IN YOUR LEVELS
You can put some water in your levels, by setting a sector's tag to a negative value. The absolute value will be the sector's water height. E.g.: sector floor 0, ceiling 128, tag: -64 : water height is 64. Legacy will say something like 'level uses dck-water hack', in the console.
When the water will be finished, it will not use the sector's tag anymore. But there will probably be an in-house program that allows editing some Legacy features in your level, it will check for negative tags and convert it to the latest specs, so you can use it now without having to re-do the water in your levels later.