Add flag to action 433 to force MFE_VERTICALFLIP

This commit is contained in:
spherallic 2023-03-20 15:46:15 +01:00
parent db4de0f50e
commit 540c5d6cc0
4 changed files with 14 additions and 0 deletions

View file

@ -2341,6 +2341,7 @@ linedeftypes
{ {
title = "Enable/Disable Gravity Flip"; title = "Enable/Disable Gravity Flip";
prefix = "(433)"; prefix = "(433)";
flags2text = "[1] Force MFE_VERTICALFLIP";
flags8text = "[3] Set delay by backside sector"; flags8text = "[3] Set delay by backside sector";
flags32text = "[5] Invert current gravity"; flags32text = "[5] Invert current gravity";
flags64text = "[6] Return to normal"; flags64text = "[6] Return to normal";

View file

@ -4223,6 +4223,16 @@ udmf
1 = "Yes"; 1 = "Yes";
} }
} }
arg2
{
title = "Force MFE_VERTICALFLIP";
type = 11;
enum
{
0 = "No";
1 = "Yes";
}
}
} }
434 434

View file

@ -5299,6 +5299,7 @@ static void P_ConvertBinaryLinedefTypes(void)
case 433: //Enable/disable gravity flip case 433: //Enable/disable gravity flip
lines[i].args[0] = !!(lines[i].flags & ML_NOCLIMB); lines[i].args[0] = !!(lines[i].flags & ML_NOCLIMB);
lines[i].args[1] = !!(lines[i].flags & ML_SKEWTD); lines[i].args[1] = !!(lines[i].flags & ML_SKEWTD);
lines[i].args[2] = !!(lines[i].flags & ML_BLOCKMONSTERS);
break; break;
case 434: //Award power-up case 434: //Award power-up
if (sides[lines[i].sidenum[0]].text) if (sides[lines[i].sidenum[0]].text)

View file

@ -2786,6 +2786,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
mo->flags2 &= ~MF2_OBJECTFLIP; mo->flags2 &= ~MF2_OBJECTFLIP;
else else
mo->flags2 |= MF2_OBJECTFLIP; mo->flags2 |= MF2_OBJECTFLIP;
if (line->args[2])
mo->eflags |= MFE_VERTICALFLIP;
if (bot) if (bot)
bot->flags2 = (bot->flags2 & ~MF2_OBJECTFLIP) | (mo->flags2 & MF2_OBJECTFLIP); bot->flags2 = (bot->flags2 & ~MF2_OBJECTFLIP) | (mo->flags2 & MF2_OBJECTFLIP);
break; break;