mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-18 22:12:31 +00:00
Add flag to line slopes for copying their slopes to the other side.
# Conflicts: # extras/conf/SRB2Kart2.cfg
This commit is contained in:
parent
3794bea729
commit
7f969705b4
3 changed files with 33 additions and 8 deletions
|
|
@ -2518,9 +2518,11 @@ linedeftypes
|
||||||
title = "Slope Frontside Floor";
|
title = "Slope Frontside Floor";
|
||||||
prefix = "(700)";
|
prefix = "(700)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 1;
|
slopeargs = 1;
|
||||||
|
copyslopeargs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
701
|
701
|
||||||
|
|
@ -2528,9 +2530,11 @@ linedeftypes
|
||||||
title = "Slope Frontside Ceiling";
|
title = "Slope Frontside Ceiling";
|
||||||
prefix = "(701)";
|
prefix = "(701)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 2;
|
slopeargs = 2;
|
||||||
|
copyslopeargs = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
702
|
702
|
||||||
|
|
@ -2538,9 +2542,11 @@ linedeftypes
|
||||||
title = "Slope Frontside Floor and Ceiling";
|
title = "Slope Frontside Floor and Ceiling";
|
||||||
prefix = "(702)";
|
prefix = "(702)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 3;
|
slopeargs = 3;
|
||||||
|
copyslopeargs = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
703
|
703
|
||||||
|
|
@ -2548,9 +2554,11 @@ linedeftypes
|
||||||
title = "Slope Frontside Floor and Backside Ceiling";
|
title = "Slope Frontside Floor and Backside Ceiling";
|
||||||
prefix = "(703)";
|
prefix = "(703)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 9;
|
slopeargs = 9;
|
||||||
|
copyslopeargs = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
704
|
704
|
||||||
|
|
@ -2580,9 +2588,11 @@ linedeftypes
|
||||||
title = "Slope Backside Floor";
|
title = "Slope Backside Floor";
|
||||||
prefix = "(710)";
|
prefix = "(710)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 4;
|
slopeargs = 4;
|
||||||
|
copyslopeargs = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
711
|
711
|
||||||
|
|
@ -2590,9 +2600,11 @@ linedeftypes
|
||||||
title = "Slope Backside Ceiling";
|
title = "Slope Backside Ceiling";
|
||||||
prefix = "(711)";
|
prefix = "(711)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 8;
|
slopeargs = 8;
|
||||||
|
copyslopeargs = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
712
|
712
|
||||||
|
|
@ -2600,9 +2612,11 @@ linedeftypes
|
||||||
title = "Slope Backside Floor and Ceiling";
|
title = "Slope Backside Floor and Ceiling";
|
||||||
prefix = "(712)";
|
prefix = "(712)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 12;
|
slopeargs = 12;
|
||||||
|
copyslopeargs = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
713
|
713
|
||||||
|
|
@ -2610,9 +2624,11 @@ linedeftypes
|
||||||
title = "Slope Backside Floor and Frontside Ceiling";
|
title = "Slope Backside Floor and Frontside Ceiling";
|
||||||
prefix = "(713)";
|
prefix = "(713)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Not dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 6;
|
slopeargs = 6;
|
||||||
|
copyslopeargs = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
714
|
714
|
||||||
|
|
|
||||||
|
|
@ -3317,6 +3317,12 @@ static void P_ConvertBinaryMap(void)
|
||||||
if (lines[i].flags & ML_NONET)
|
if (lines[i].flags & ML_NONET)
|
||||||
lines[i].args[2] |= TMSL_DYNAMIC;
|
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;
|
lines[i].special = 700;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -758,6 +758,9 @@ void P_SpawnSlopes(const boolean fromsave) {
|
||||||
for (i = 0; i < numlines; i++)
|
for (i = 0; i < numlines; i++)
|
||||||
switch (lines[i].special)
|
switch (lines[i].special)
|
||||||
{
|
{
|
||||||
|
case 700:
|
||||||
|
if (lines[i].flags & ML_TFERLINE) P_CopySectorSlope(&lines[i]);
|
||||||
|
break;
|
||||||
case 720:
|
case 720:
|
||||||
P_CopySectorSlope(&lines[i]);
|
P_CopySectorSlope(&lines[i]);
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue