mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Add flag to invert current gravity to gravity flip executor
This commit is contained in:
parent
ef35084d95
commit
f0adc71f9b
4 changed files with 18 additions and 4 deletions
|
@ -2315,6 +2315,7 @@ linedeftypes
|
|||
title = "Enable/Disable Gravity Flip";
|
||||
prefix = "(433)";
|
||||
flags8text = "[3] Set delay by backside sector";
|
||||
flags32text = "[5] Invert current gravity";
|
||||
flags64text = "[6] Return to normal";
|
||||
}
|
||||
|
||||
|
@ -6949,7 +6950,7 @@ thingtypes
|
|||
{
|
||||
color = 10; // Green
|
||||
title = "Tutorial";
|
||||
|
||||
|
||||
799
|
||||
{
|
||||
title = "Tutorial Plant";
|
||||
|
|
|
@ -2593,7 +2593,7 @@ udmf
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
190
|
||||
{
|
||||
title = "Rising";
|
||||
|
@ -4157,7 +4157,7 @@ udmf
|
|||
prefix = "(433)";
|
||||
arg0
|
||||
{
|
||||
title = "Gravity";
|
||||
title = "Set gravity";
|
||||
type = 11;
|
||||
enum
|
||||
{
|
||||
|
@ -4165,6 +4165,16 @@ udmf
|
|||
1 = "Normal";
|
||||
}
|
||||
}
|
||||
arg1
|
||||
{
|
||||
title = "Invert current gravity";
|
||||
type = 11;
|
||||
enum
|
||||
{
|
||||
0 = "No";
|
||||
1 = "Yes";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
434
|
||||
|
|
|
@ -5164,6 +5164,7 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
break;
|
||||
case 433: //Enable/disable gravity flip
|
||||
lines[i].args[0] = !!(lines[i].flags & ML_NOCLIMB);
|
||||
lines[i].args[1] = !!(lines[i].flags & ML_SKEWTD);
|
||||
break;
|
||||
case 434: //Award power-up
|
||||
if (sides[lines[i].sidenum[0]].text)
|
||||
|
|
|
@ -2773,7 +2773,9 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
break;
|
||||
|
||||
case 433: // Flip/flop gravity. Works on pushables, too!
|
||||
if (line->args[0])
|
||||
if (line->args[1])
|
||||
mo->flags2 ^= MF2_OBJECTFLIP;
|
||||
else if (line->args[0])
|
||||
mo->flags2 &= ~MF2_OBJECTFLIP;
|
||||
else
|
||||
mo->flags2 |= MF2_OBJECTFLIP;
|
||||
|
|
Loading…
Reference in a new issue