Add Mine Train RC flat-to-steep pieces

This commit is contained in:
mix authored and Gymnasiast committed 2024-09-29 23:22:54 +02:00
1 parent 558d235680
commit 487624ee33
70 files changed
+706 -29

No files matched your search

+1 -1
View File
@@ -306,7 +306,7 @@ Appreciation for contributors who have provided substantial work, but are no lon
* Martijn Kroese (MK98) - Diagonal brakes project
* Peter van den Berg (Recurious) - Diagonal brakes project
* Joshua Jacobs - OpenGraphics Spooky Theme
* (mixiate) - Wooden Rollercoaster flat to steep track pieces
* (mixiate) - Wooden and Mine Train Rollercoaster flat-to-steep track pieces
## Music
* Karst "Jalmaan" van Galen Last (AuraSpecs)
+352
View File
@@ -7265,6 +7265,198 @@
"y": -3,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_1_1.png",
"x": -25,
"y": -4,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_1_2.png",
"x": -25,
"y": -20,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_1_3.png",
"x": -25,
"y": -24,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_1_4.png",
"x": -24,
"y": -47,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_2_1.png",
"x": -25,
"y": 2,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_2_2.png",
"x": -26,
"y": -6,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_2_3.png",
"x": -25,
"y": -3,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_2_4.png",
"x": -20,
"y": -29,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_3_1.png",
"x": -27,
"y": 1,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_3_2.png",
"x": -28,
"y": -4,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_3_3.png",
"x": -23,
"y": -13,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_3_4.png",
"x": -25,
"y": -32,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_4_1.png",
"x": -33,
"y": -4,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_4_2.png",
"x": -26,
"y": -19,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_4_3.png",
"x": -26,
"y": -24,
"palette": "keep"
},
{
"path": "track/minetrain/flat_to_steep_up_4_4.png",
"x": -27,
"y": -45,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_1_1.png",
"x": -27,
"y": -42,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_1_2.png",
"x": -26,
"y": -29,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_1_3.png",
"x": -28,
"y": -17,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_1_4.png",
"x": -26,
"y": -6,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_2_1.png",
"x": -26,
"y": -22,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_2_2.png",
"x": -20,
"y": -13,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_2_3.png",
"x": -22,
"y": -7,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_2_4.png",
"x": -25,
"y": -2,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_3_1.png",
"x": -14,
"y": -22,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_3_2.png",
"x": -14,
"y": -11,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_3_3.png",
"x": -20,
"y": -6,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_3_4.png",
"x": -24,
"y": -5,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_4_1.png",
"x": -23,
"y": -38,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_4_2.png",
"x": -21,
"y": -28,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_4_3.png",
"x": -25,
"y": -17,
"palette": "keep"
},
{
"path": "track/minetrain/steep_to_flat_up_4_4.png",
"x": -24,
"y": -6,
"palette": "keep"
},
{
"path": "track/standup/brake_horizontal.png",
"x": -32,
@@ -9740,6 +9932,166 @@
"x": -32,
"y": -17
},
{
"path": "support/wooden/mine/flat_to_steep_1_1.png",
"x": -24,
"y": -1
},
{
"path": "support/wooden/mine/flat_to_steep_1_2.png",
"x": -24,
"y": 2
},
{
"path": "support/wooden/mine/flat_to_steep_1_3.png",
"x": -24,
"y": 2
},
{
"path": "support/wooden/mine/flat_to_steep_1_4.png",
"x": -24,
"y": -1
},
{
"path": "support/wooden/mine/flat_to_steep_2_1.png",
"x": -24,
"y": -14
},
{
"path": "support/wooden/mine/flat_to_steep_2_2.png",
"x": -24,
"y": -1
},
{
"path": "support/wooden/mine/flat_to_steep_2_3.png",
"x": -24,
"y": -1
},
{
"path": "support/wooden/mine/flat_to_steep_2_4.png",
"x": -24,
"y": -14
},
{
"path": "support/wooden/mine/flat_to_steep_3_1.png",
"x": -24,
"y": -23
},
{
"path": "support/wooden/mine/flat_to_steep_3_2.png",
"x": -24,
"y": -6
},
{
"path": "support/wooden/mine/flat_to_steep_3_3.png",
"x": -24,
"y": -6
},
{
"path": "support/wooden/mine/flat_to_steep_3_4.png",
"x": -24,
"y": -22
},
{
"path": "support/wooden/mine/flat_to_steep_4_1.png",
"x": -24,
"y": -52
},
{
"path": "support/wooden/mine/flat_to_steep_4_2.png",
"x": -24,
"y": -36
},
{
"path": "support/wooden/mine/flat_to_steep_4_3.png",
"x": -24,
"y": -36
},
{
"path": "support/wooden/mine/flat_to_steep_4_4.png",
"x": -24,
"y": -52
},
{
"path": "support/wooden/mine/steep_to_flat_1_1.png",
"x": -24,
"y": -49
},
{
"path": "support/wooden/mine/steep_to_flat_1_2.png",
"x": -24,
"y": -33
},
{
"path": "support/wooden/mine/steep_to_flat_1_3.png",
"x": -24,
"y": -33
},
{
"path": "support/wooden/mine/steep_to_flat_1_4.png",
"x": -24,
"y": -49
},
{
"path": "support/wooden/mine/steep_to_flat_2_1.png",
"x": -24,
"y": -28
},
{
"path": "support/wooden/mine/steep_to_flat_2_2.png",
"x": -24,
"y": -12
},
{
"path": "support/wooden/mine/steep_to_flat_2_3.png",
"x": -24,
"y": -12
},
{
"path": "support/wooden/mine/steep_to_flat_2_4.png",
"x": -24,
"y": -28
},
{
"path": "support/wooden/mine/steep_to_flat_3_1.png",
"x": -24,
"y": -26
},
{
"path": "support/wooden/mine/steep_to_flat_3_2.png",
"x": -24,
"y": -13
},
{
"path": "support/wooden/mine/steep_to_flat_3_3.png",
"x": -24,
"y": -13
},
{
"path": "support/wooden/mine/steep_to_flat_3_4.png",
"x": -24,
"y": -26
},
{
"path": "support/wooden/mine/steep_to_flat_4_1.png",
"x": -24,
"y": -15
},
{
"path": "support/wooden/mine/steep_to_flat_4_2.png",
"x": -24,
"y": -10
},
{
"path": "support/wooden/mine/steep_to_flat_4_3.png",
"x": -24,
"y": -10
},
{
"path": "support/wooden/mine/steep_to_flat_4_4.png",
"x": -24,
"y": -15
},
{
"path": "track/rmc/preview_track.png",
"x": 1,
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

+32 -24
View File
@@ -77,22 +77,22 @@ static constexpr ImagesByTransitionTypeArray WoodenCurveSupportImageIds0 = { {
{ 3505, 3506, 3507, 3508 }, // ?
{ 3509, 3510, 3511, 3512 }, // ?
{ 3513, 3513, 3513, 3513 }, // Large scenery
{ SPR_G2_SUPPORT_BEGIN, SPR_G2_SUPPORT_BEGIN + 1, SPR_G2_SUPPORT_BEGIN + 2,
SPR_G2_SUPPORT_BEGIN + 3 }, // Flat to steep large 1
{ SPR_G2_SUPPORT_BEGIN + 4, SPR_G2_SUPPORT_BEGIN + 5, SPR_G2_SUPPORT_BEGIN + 6,
SPR_G2_SUPPORT_BEGIN + 7 }, // Flat to steep large 2
{ SPR_G2_SUPPORT_BEGIN + 8, SPR_G2_SUPPORT_BEGIN + 9, SPR_G2_SUPPORT_BEGIN + 10,
SPR_G2_SUPPORT_BEGIN + 11 }, // Flat to steep large 3
{ SPR_G2_SUPPORT_BEGIN + 12, SPR_G2_SUPPORT_BEGIN + 13, SPR_G2_SUPPORT_BEGIN + 14,
SPR_G2_SUPPORT_BEGIN + 15 }, // Flat to steep large 4
{ SPR_G2_SUPPORT_BEGIN + 16, SPR_G2_SUPPORT_BEGIN + 17, SPR_G2_SUPPORT_BEGIN + 18,
SPR_G2_SUPPORT_BEGIN + 19 }, // Steep to flat large 1
{ SPR_G2_SUPPORT_BEGIN + 20, SPR_G2_SUPPORT_BEGIN + 21, SPR_G2_SUPPORT_BEGIN + 22,
SPR_G2_SUPPORT_BEGIN + 23 }, // Steep to flat large 2
{ SPR_G2_SUPPORT_BEGIN + 24, SPR_G2_SUPPORT_BEGIN + 25, SPR_G2_SUPPORT_BEGIN + 26,
SPR_G2_SUPPORT_BEGIN + 27 }, // Steep to flat large 3
{ SPR_G2_SUPPORT_BEGIN + 28, SPR_G2_SUPPORT_BEGIN + 29, SPR_G2_SUPPORT_BEGIN + 30,
SPR_G2_SUPPORT_BEGIN + 31 }, // Steep to flat large 4
{ SPR_G2_SUPPORT_WOODEN_TRUSS, SPR_G2_SUPPORT_WOODEN_TRUSS + 1, SPR_G2_SUPPORT_WOODEN_TRUSS + 2,
SPR_G2_SUPPORT_WOODEN_TRUSS + 3 }, // Flat to steep large 1
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 4, SPR_G2_SUPPORT_WOODEN_TRUSS + 5, SPR_G2_SUPPORT_WOODEN_TRUSS + 6,
SPR_G2_SUPPORT_WOODEN_TRUSS + 7 }, // Flat to steep large 2
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 8, SPR_G2_SUPPORT_WOODEN_TRUSS + 9, SPR_G2_SUPPORT_WOODEN_TRUSS + 10,
SPR_G2_SUPPORT_WOODEN_TRUSS + 11 }, // Flat to steep large 3
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 12, SPR_G2_SUPPORT_WOODEN_TRUSS + 13, SPR_G2_SUPPORT_WOODEN_TRUSS + 14,
SPR_G2_SUPPORT_WOODEN_TRUSS + 15 }, // Flat to steep large 4
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 16, SPR_G2_SUPPORT_WOODEN_TRUSS + 17, SPR_G2_SUPPORT_WOODEN_TRUSS + 18,
SPR_G2_SUPPORT_WOODEN_TRUSS + 19 }, // Steep to flat large 1
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 20, SPR_G2_SUPPORT_WOODEN_TRUSS + 21, SPR_G2_SUPPORT_WOODEN_TRUSS + 22,
SPR_G2_SUPPORT_WOODEN_TRUSS + 23 }, // Steep to flat large 2
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 24, SPR_G2_SUPPORT_WOODEN_TRUSS + 25, SPR_G2_SUPPORT_WOODEN_TRUSS + 26,
SPR_G2_SUPPORT_WOODEN_TRUSS + 27 }, // Steep to flat large 3
{ SPR_G2_SUPPORT_WOODEN_TRUSS + 28, SPR_G2_SUPPORT_WOODEN_TRUSS + 29, SPR_G2_SUPPORT_WOODEN_TRUSS + 30,
SPR_G2_SUPPORT_WOODEN_TRUSS + 31 }, // Steep to flat large 4
} };
static constexpr ImagesByTransitionTypeArray WoodenCurveSupportImageIds1 = { {
@@ -109,14 +109,22 @@ static constexpr ImagesByTransitionTypeArray WoodenCurveSupportImageIds1 = { {
{ 3721, 3722, 3723, 3724 }, // ?
{ 3725, 3726, 3727, 3728 }, // ?
{ 3729, 3729, 3729, 3729 }, // Large scenery
{ 0, 0, 0, 0 }, // Flat to steep large 1
{ 0, 0, 0, 0 }, // Flat to steep large 2
{ 0, 0, 0, 0 }, // Flat to steep large 3
{ 0, 0, 0, 0 }, // Flat to steep large 4
{ 0, 0, 0, 0 }, // Steep to flat large 1
{ 0, 0, 0, 0 }, // Steep to flat large 2
{ 0, 0, 0, 0 }, // Steep to flat large 3
{ 0, 0, 0, 0 }, // Steep to flat large 4
{ SPR_G2_SUPPORT_WOODEN_MINE, SPR_G2_SUPPORT_WOODEN_MINE + 1, SPR_G2_SUPPORT_WOODEN_MINE + 2,
SPR_G2_SUPPORT_WOODEN_MINE + 3 }, // Flat to steep large 1
{ SPR_G2_SUPPORT_WOODEN_MINE + 4, SPR_G2_SUPPORT_WOODEN_MINE + 5, SPR_G2_SUPPORT_WOODEN_MINE + 6,
SPR_G2_SUPPORT_WOODEN_MINE + 7 }, // Flat to steep large 2
{ SPR_G2_SUPPORT_WOODEN_MINE + 8, SPR_G2_SUPPORT_WOODEN_MINE + 9, SPR_G2_SUPPORT_WOODEN_MINE + 10,
SPR_G2_SUPPORT_WOODEN_MINE + 11 }, // Flat to steep large 3
{ SPR_G2_SUPPORT_WOODEN_MINE + 12, SPR_G2_SUPPORT_WOODEN_MINE + 13, SPR_G2_SUPPORT_WOODEN_MINE + 14,
SPR_G2_SUPPORT_WOODEN_MINE + 15 }, // Flat to steep large 4
{ SPR_G2_SUPPORT_WOODEN_MINE + 16, SPR_G2_SUPPORT_WOODEN_MINE + 17, SPR_G2_SUPPORT_WOODEN_MINE + 18,
SPR_G2_SUPPORT_WOODEN_MINE + 19 }, // Steep to flat large 1
{ SPR_G2_SUPPORT_WOODEN_MINE + 20, SPR_G2_SUPPORT_WOODEN_MINE + 21, SPR_G2_SUPPORT_WOODEN_MINE + 22,
SPR_G2_SUPPORT_WOODEN_MINE + 23 }, // Steep to flat large 2
{ SPR_G2_SUPPORT_WOODEN_MINE + 24, SPR_G2_SUPPORT_WOODEN_MINE + 25, SPR_G2_SUPPORT_WOODEN_MINE + 26,
SPR_G2_SUPPORT_WOODEN_MINE + 27 }, // Steep to flat large 3
{ SPR_G2_SUPPORT_WOODEN_MINE + 28, SPR_G2_SUPPORT_WOODEN_MINE + 29, SPR_G2_SUPPORT_WOODEN_MINE + 30,
SPR_G2_SUPPORT_WOODEN_MINE + 31 }, // Steep to flat large 4
} };
// clang-format off
@@ -7019,6 +7019,313 @@ static void MineTrainRCTrackBlockBrakes(
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
}
static void MineTrainRCTrackFlatTo60DegUpLongBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
switch (trackSequence)
{
case 0:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 0),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 4),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 8),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 12),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp60DegLongBaseSeq0);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat);
}
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48);
break;
case 1:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 1),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 5),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 9),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 13),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp60DegLongBaseSeq1);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48);
break;
case 2:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 2),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 6),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 10),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 14),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp60DegLongBaseSeq2);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64);
break;
case 3:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 3),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
session.WoodenSupportsPrependTo = PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 7),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 2:
session.WoodenSupportsPrependTo = PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 11),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 15),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp60DegLongBaseSeq3);
switch (direction)
{
case 1:
PaintUtilPushTunnelRight(session, height + 24, kTunnelGroup, TunnelSubType::SlopeEnd);
break;
case 2:
PaintUtilPushTunnelLeft(session, height + 24, kTunnelGroup, TunnelSubType::SlopeEnd);
break;
}
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 80);
break;
}
}
static void MineTrainRCTrack60DegUpToFlatLongBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
switch (trackSequence)
{
case 0:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 16),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
session.WoodenSupportsPrependTo = PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 20),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 2:
session.WoodenSupportsPrependTo = PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 24),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 28),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up60DegToFlatLongBaseSeq0);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::SlopeStart);
}
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 80);
break;
case 1:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 17),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 21),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 25),
{ 0, 0, height }, { { 28, 4, height }, { 2, 24, 56 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 29),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up60DegToFlatLongBaseSeq1);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 80);
break;
case 2:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 18),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 22),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 26),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 30),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up60DegToFlatLongBaseSeq2);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 56);
break;
case 3:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 19),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 23),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 27),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 31),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up60DegToFlatLongBaseSeq3);
switch (direction)
{
case 1:
PaintUtilPushTunnelRight(session, height + 8, kTunnelGroup, TunnelSubType::Flat);
break;
case 2:
PaintUtilPushTunnelLeft(session, height + 8, kTunnelGroup, TunnelSubType::Flat);
break;
}
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 40);
break;
}
}
static void MineTrainRCTrackFlatTo60DegDownLongBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
MineTrainRCTrack60DegUpToFlatLongBase(
session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType);
}
static void MineTrainRCTrack60DegDownToFlatLongBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
MineTrainRCTrackFlatTo60DegUpLongBase(
session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType);
}
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRC(int32_t trackType)
{
switch (trackType)
@@ -7213,6 +7520,14 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRC(int32_t trackType)
return MineTrainRCTrackDiagBrakes;
case TrackElemType::DiagBlockBrakes:
return MineTrainRCTrackDiagBlockBrakes;
case TrackElemType::FlatToUp60LongBase:
return MineTrainRCTrackFlatTo60DegUpLongBase;
case TrackElemType::Up60ToFlatLongBase:
return MineTrainRCTrack60DegUpToFlatLongBase;
case TrackElemType::FlatToDown60LongBase:
return MineTrainRCTrackFlatTo60DegDownLongBase;
case TrackElemType::Down60ToFlatLongBase:
return MineTrainRCTrack60DegDownToFlatLongBase;
}
return nullptr;
}
@@ -23,7 +23,7 @@ constexpr RideTypeDescriptor MineTrainCoasterRTD =
.TrackPaintFunctions = TrackDrawerDescriptor({
.Drawer = GetTrackPaintFunctionMineTrainRC,
.supportType = WoodenSupportType::Mine,
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeSteepLong},
.ExtraTrackPieces = {},
}),
.InvertedTrackPaintFunctions = {},
+5 -3
View File
@@ -1319,7 +1319,8 @@ enum : ImageIndex
SPR_G2_MINETRAIN_RC_BEGIN = SPR_G2_LOOPING_RC_END,
SPR_G2_MINETRAIN_DIAG_BRAKES = SPR_G2_MINETRAIN_RC_BEGIN,
SPR_G2_MINETRAIN_RC_END = SPR_G2_MINETRAIN_DIAG_BRAKES + 6,
SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP = SPR_G2_MINETRAIN_DIAG_BRAKES + 6,
SPR_G2_MINETRAIN_RC_END = SPR_G2_MINETRAIN_RC_FLAT_TO_STEEP + 32,
SPR_G2_STANDUP_RC_BEGIN = SPR_G2_MINETRAIN_RC_END,
SPR_G2_STANDUP_DIAG_BRAKES = SPR_G2_STANDUP_RC_BEGIN,
@@ -1374,8 +1375,9 @@ enum : ImageIndex
// G2 Supports
SPR_G2_SUPPORT_BEGIN,
SPR_G2_SUPPORT_END = SPR_G2_SUPPORT_BEGIN + 32,
SPR_G2_SUPPORT_WOODEN_TRUSS,
SPR_G2_SUPPORT_WOODEN_MINE = SPR_G2_SUPPORT_WOODEN_TRUSS + 32,
SPR_G2_SUPPORT_END = SPR_G2_SUPPORT_WOODEN_MINE + 32,
// G2 New track types