Add flag to line slopes for copying their slopes to the other side.

# Conflicts:
#	extras/conf/SRB2Kart2.cfg
This commit is contained in:
toaster 2022-03-18 18:30:40 +00:00
parent 3794bea729
commit 7f969705b4
3 changed files with 33 additions and 8 deletions

View file

@ -2518,9 +2518,11 @@ linedeftypes
title = "Slope Frontside Floor";
prefix = "(700)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 1;
copyslopeargs = 1;
}
701
@ -2528,9 +2530,11 @@ linedeftypes
title = "Slope Frontside Ceiling";
prefix = "(701)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 2;
copyslopeargs = 4;
}
702
@ -2538,9 +2542,11 @@ linedeftypes
title = "Slope Frontside Floor and Ceiling";
prefix = "(702)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 3;
copyslopeargs = 5;
}
703
@ -2548,9 +2554,11 @@ linedeftypes
title = "Slope Frontside Floor and Backside Ceiling";
prefix = "(703)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 9;
copyslopeargs = 8;
}
704
@ -2580,9 +2588,11 @@ linedeftypes
title = "Slope Backside Floor";
prefix = "(710)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 4;
copyslopeargs = 2;
}
711
@ -2590,9 +2600,11 @@ linedeftypes
title = "Slope Backside Ceiling";
prefix = "(711)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 8;
copyslopeargs = 8;
}
712
@ -2600,9 +2612,11 @@ linedeftypes
title = "Slope Backside Floor and Ceiling";
prefix = "(712)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 12;
copyslopeargs = 10;
}
713
@ -2610,9 +2624,11 @@ linedeftypes
title = "Slope Backside Floor and Frontside Ceiling";
prefix = "(713)";
flags2048text = "[11] No physics";
flags4096text = "[12] Not dynamic";
flags4096text = "[12] Dynamic";
flags32768text = "[15] Copy to other side";
slope = "regular";
slopeargs = 6;
copyslopeargs = 6;
}
714

View file

@ -3317,6 +3317,12 @@ static void P_ConvertBinaryMap(void)
if (lines[i].flags & ML_NONET)
lines[i].args[2] |= TMSL_DYNAMIC;
if (lines[i].flags & ML_TFERLINE)
{
lines[i].args[4] |= backfloor ? TMSC_BACKTOFRONTFLOOR : (frontfloor ? TMSC_FRONTTOBACKFLOOR : 0);
lines[i].args[4] |= backceil ? TMSC_BACKTOFRONTCEILING : (frontceil ? TMSC_FRONTTOBACKCEILING : 0);
}
lines[i].special = 700;
break;
}

View file

@ -758,6 +758,9 @@ void P_SpawnSlopes(const boolean fromsave) {
for (i = 0; i < numlines; i++)
switch (lines[i].special)
{
case 700:
if (lines[i].flags & ML_TFERLINE) P_CopySectorSlope(&lines[i]);
break;
case 720:
P_CopySectorSlope(&lines[i]);
default: