Implement "add laser thinker to FOF" linedef type

This commit is contained in:
MascaraSnake 2020-05-02 10:30:21 +02:00
parent 1ae797359e
commit 312a2def3d
2 changed files with 30 additions and 0 deletions

View file

@ -1991,6 +1991,23 @@ udmf
type = 2; type = 2;
} }
} }
263
{
title = "Add Laser Thinker";
prefix = "(263)";
arg0
{
title = "Control linedef tag";
type = 15;
}
arg1
{
title = "Damage bosses?";
type = 11;
enum = "yesno";
}
}
} }
linedefexecmisc linedefexecmisc

View file

@ -6999,6 +6999,19 @@ void P_SpawnSpecials(boolean fromnetsave)
} }
break; break;
case 263: // Add laser thinker to FOF
if (udmf)
{
for (l = -1; (l = P_FindLineFromTag(lines[i].args[0], l)) >= 0 ;)
{
if (lines[l].special < 100 || lines[l].special >= 300)
continue;
P_AddLaserThinker(lines[l].args[0], lines + l, !!(lines[i].args[1]));
}
}
break;
case 300: // Linedef executor (combines with sector special 974/975) and commands case 300: // Linedef executor (combines with sector special 974/975) and commands
case 302: case 302:
case 303: case 303: