mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-28 07:02:38 +00:00
Implement linedef type 250
This commit is contained in:
parent
fdb46e5d14
commit
916f831edb
3 changed files with 30 additions and 2 deletions
|
@ -1623,6 +1623,27 @@ udmf
|
|||
}
|
||||
}
|
||||
|
||||
250
|
||||
{
|
||||
title = "Mario Block";
|
||||
prefix = "(250);
|
||||
arg0
|
||||
{
|
||||
title = "Target sector tag";
|
||||
type = 13;
|
||||
}
|
||||
arg1
|
||||
{
|
||||
title = "Block type";
|
||||
type = 12;
|
||||
enum
|
||||
{
|
||||
1 = "Brick";
|
||||
2 = "Invisible";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
linedefexecmisc
|
||||
{
|
||||
title = "Linedef Executor (misc.)";
|
||||
|
|
|
@ -2931,6 +2931,13 @@ static void P_ConvertBinaryMap(void)
|
|||
case 223: //FOF: Intangible, invisible
|
||||
lines[i].args[0] = lines[i].tag;
|
||||
break;
|
||||
case 250: //FOF: Mario block
|
||||
lines[i].args[0] = lines[i].tag;
|
||||
if (lines[i].flags & ML_NOCLIMB) //Brick block
|
||||
lines[i].args[1] |= 1;
|
||||
if (lines[i].flags & ML_EFFECT1) //Invisible
|
||||
lines[i].args[1] |= 2;
|
||||
break;
|
||||
case 443: //Call Lua function
|
||||
if (lines[i].text)
|
||||
{
|
||||
|
|
|
@ -6987,9 +6987,9 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
|
||||
case 250: // Mario Block
|
||||
ffloorflags = FF_EXISTS|FF_SOLID|FF_RENDERALL|FF_CUTLEVEL|FF_MARIO;
|
||||
if (lines[i].flags & ML_NOCLIMB)
|
||||
if (lines[i].args[1] & 1) //Brick block
|
||||
ffloorflags |= FF_SHATTERBOTTOM;
|
||||
if (lines[i].flags & ML_EFFECT1)
|
||||
if (lines[i].args[1] & 2) // Invisible
|
||||
ffloorflags &= ~(FF_SOLID|FF_RENDERALL|FF_CUTLEVEL);
|
||||
|
||||
P_AddFakeFloorsByLine(i, ffloorflags, secthinkers);
|
||||
|
|
Loading…
Reference in a new issue