mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
Implement "add laser thinker to FOF" linedef type
This commit is contained in:
parent
1ae797359e
commit
312a2def3d
2 changed files with 30 additions and 0 deletions
|
@ -1991,6 +1991,23 @@ udmf
|
|||
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
|
||||
|
|
13
src/p_spec.c
13
src/p_spec.c
|
@ -6999,6 +6999,19 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
}
|
||||
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 302:
|
||||
case 303:
|
||||
|
|
Loading…
Reference in a new issue