mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 13:21:20 +00:00
Add flag to action 433 to force MFE_VERTICALFLIP
This commit is contained in:
parent
db4de0f50e
commit
540c5d6cc0
4 changed files with 14 additions and 0 deletions
|
@ -2341,6 +2341,7 @@ linedeftypes
|
|||
{
|
||||
title = "Enable/Disable Gravity Flip";
|
||||
prefix = "(433)";
|
||||
flags2text = "[1] Force MFE_VERTICALFLIP";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags32text = "[5] Invert current gravity";
|
||||
flags64text = "[6] Return to normal";
|
||||
|
|
|
@ -4223,6 +4223,16 @@ udmf
|
|||
1 = "Yes";
|
||||
}
|
||||
}
|
||||
arg2
|
||||
{
|
||||
title = "Force MFE_VERTICALFLIP";
|
||||
type = 11;
|
||||
enum
|
||||
{
|
||||
0 = "No";
|
||||
1 = "Yes";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
434
|
||||
|
|
|
@ -5299,6 +5299,7 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
case 433: //Enable/disable gravity flip
|
||||
lines[i].args[0] = !!(lines[i].flags & ML_NOCLIMB);
|
||||
lines[i].args[1] = !!(lines[i].flags & ML_SKEWTD);
|
||||
lines[i].args[2] = !!(lines[i].flags & ML_BLOCKMONSTERS);
|
||||
break;
|
||||
case 434: //Award power-up
|
||||
if (sides[lines[i].sidenum[0]].text)
|
||||
|
|
|
@ -2786,6 +2786,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
mo->flags2 &= ~MF2_OBJECTFLIP;
|
||||
else
|
||||
mo->flags2 |= MF2_OBJECTFLIP;
|
||||
if (line->args[2])
|
||||
mo->eflags |= MFE_VERTICALFLIP;
|
||||
if (bot)
|
||||
bot->flags2 = (bot->flags2 & ~MF2_OBJECTFLIP) | (mo->flags2 & MF2_OBJECTFLIP);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue