mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Merge branch 'even-more-slope-copying' into 'next'
Add flag to line slopes for even more slope copying See merge request STJr/SRB2!1550
This commit is contained in:
commit
bff2106016
3 changed files with 25 additions and 0 deletions
|
@ -2950,8 +2950,10 @@ linedeftypes
|
||||||
prefix = "(700)";
|
prefix = "(700)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 1;
|
slopeargs = 1;
|
||||||
|
copyslopeargs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
701
|
701
|
||||||
|
@ -2960,8 +2962,10 @@ linedeftypes
|
||||||
prefix = "(701)";
|
prefix = "(701)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 2;
|
slopeargs = 2;
|
||||||
|
copyslopeargs = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
702
|
702
|
||||||
|
@ -2970,8 +2974,10 @@ linedeftypes
|
||||||
prefix = "(702)";
|
prefix = "(702)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 3;
|
slopeargs = 3;
|
||||||
|
copyslopeargs = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
703
|
703
|
||||||
|
@ -2980,8 +2986,10 @@ linedeftypes
|
||||||
prefix = "(703)";
|
prefix = "(703)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 9;
|
slopeargs = 9;
|
||||||
|
copyslopeargs = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
704
|
704
|
||||||
|
@ -3012,8 +3020,10 @@ linedeftypes
|
||||||
prefix = "(710)";
|
prefix = "(710)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 4;
|
slopeargs = 4;
|
||||||
|
copyslopeargs = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
711
|
711
|
||||||
|
@ -3022,8 +3032,10 @@ linedeftypes
|
||||||
prefix = "(711)";
|
prefix = "(711)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 8;
|
slopeargs = 8;
|
||||||
|
copyslopeargs = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
712
|
712
|
||||||
|
@ -3032,8 +3044,10 @@ linedeftypes
|
||||||
prefix = "(712)";
|
prefix = "(712)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 12;
|
slopeargs = 12;
|
||||||
|
copyslopeargs = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
713
|
713
|
||||||
|
@ -3042,8 +3056,10 @@ linedeftypes
|
||||||
prefix = "(713)";
|
prefix = "(713)";
|
||||||
flags2048text = "[11] No physics";
|
flags2048text = "[11] No physics";
|
||||||
flags4096text = "[12] Dynamic";
|
flags4096text = "[12] Dynamic";
|
||||||
|
flags32768text = "[15] Copy to other side";
|
||||||
slope = "regular";
|
slope = "regular";
|
||||||
slopeargs = 6;
|
slopeargs = 6;
|
||||||
|
copyslopeargs = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
714
|
714
|
||||||
|
|
|
@ -3227,6 +3227,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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -701,6 +701,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…
Reference in a new issue