Add medium half loops to the Twister and Vertical Drop Roller Coaster

This commit is contained in:
mix committed 2024-11-10 21:12:41 +00:00
1 parent c412cc29d4
commit 0a94311ea9
49 files changed
+694 -3

No files matched your search

+264
View File
@@ -6775,6 +6775,270 @@
"y": -37,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_1_1.png",
"x": -26,
"y": -34,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_1_2.png",
"x": -33,
"y": -55,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_1_3.png",
"x": -32,
"y": -95,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_1_4.png",
"x": -44,
"y": -123,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_1_5.png",
"x": -26,
"y": -35,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_1.png",
"x": -27,
"y": -10,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_2.png",
"x": -16,
"y": -38,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_3.png",
"x": -16,
"y": -85,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_4.png",
"x": -33,
"y": -148,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_5.png",
"x": -25,
"y": -45,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_1.png",
"x": -29,
"y": -12,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_2.png",
"x": 0,
"y": -14,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_3.png",
"x": -6,
"y": -69,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_4.png",
"x": -32,
"y": -154,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_5.png",
"x": -19,
"y": -45,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_4_1.png",
"x": -24,
"y": -19,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_4_2.png",
"x": -26,
"y": -27,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_4_3.png",
"x": -32,
"y": -31,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_4_4.png",
"x": -12,
"y": -126,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_4_5.png",
"x": -27,
"y": -38,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_1_1.png",
"x": -27,
"y": -20,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_1_2.png",
"x": -22,
"y": -27,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_1_3.png",
"x": -21,
"y": -31,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_1_4.png",
"x": -46,
"y": -125,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_1_5.png",
"x": -27,
"y": -38,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_1.png",
"x": -27,
"y": -17,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_2.png",
"x": -32,
"y": -16,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_3.png",
"x": -32,
"y": -62,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_4.png",
"x": -27,
"y": -153,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_5.png",
"x": -24,
"y": -45,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_1.png",
"x": -32,
"y": -13,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_2.png",
"x": -32,
"y": -35,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_3.png",
"x": -32,
"y": -85,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_4.png",
"x": -13,
"y": -149,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_5.png",
"x": -14,
"y": -45,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_4_1.png",
"x": -23,
"y": -33,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_4_2.png",
"x": -17,
"y": -52,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_4_3.png",
"x": -5,
"y": -102,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_4_4.png",
"x": -32,
"y": -125,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_4_5.png",
"x": -32,
"y": -35,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_2_2_2.png",
"x": -16,
"y": -38,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_left_3_2_2.png",
"x": 0,
"y": -14,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_2_2_2.png",
"x": -32,
"y": -16,
"palette": "keep"
},
{
"path": "track/bm/medium_half_loop_right_3_2_2.png",
"x": -32,
"y": -35,
"palette": "keep"
},
{
"path": "track/railway/quarter_turn_3_tiles_sw_se_part_3.png",
"x": -8,
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 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: 5.1 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.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 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: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 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.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 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.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

@@ -15029,6 +15029,422 @@ static void TwisterRCTrackRightLargeCorkscrewDown(
session, ride, 5 - trackSequence, (direction - 1) & 3, height, trackElement, supportType);
}
static void TwisterRCTrackLeftMediumHalfLoopUp(
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_BM_TRACK_MEDIUM_HALF_LOOP + 0)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 5)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 10)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 15)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart);
}
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_BM_TRACK_MEDIUM_HALF_LOOP + 1)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 6)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 0 } });
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 40)),
{ 0, 0, height }, { { 0, 31, height }, { 0, 32, 64 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 11)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 41)),
{ 0, 0, height }, { { 0, 32, height }, { 32, 0, 64 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 16)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::leftCorner, PaintSegment::topLeftSide, PaintSegment::centre, PaintSegment::topRightSide,
PaintSegment::bottomLeftSide, PaintSegment::topCorner),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 72);
break;
case 2:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 2)),
{ 0, 0, height }, { { 0, 0, height + 2 }, { 32, 32, 0 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::TopLeftSide, 14, height, session.SupportColours);
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 7)),
{ 0, 0, height }, { { 29, 0, height }, { 1, 32, 96 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::TopRightSide, 16, height, session.SupportColours);
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 12)),
{ 0, 0, height }, { { 31, 0, height }, { 1, 32, 96 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::BottomRightSide, 18, height, session.SupportColours);
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 17)),
{ 0, 0, height }, { { 0, 0, height }, { 32, 32, 0 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::BottomLeftSide, 14, height, session.SupportColours);
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::leftCorner, PaintSegment::topLeftSide, PaintSegment::centre,
PaintSegment::bottomLeftSide),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 144);
break;
case 3:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 3),
{ 0, 0, height }, { { 2, 0, height }, { 1, 32, 160 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 8),
{ 0, 0, height }, { { 0, 0, height + 140 }, { 32, 32, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 13),
{ 0, 0, height }, { { 29, 0, height }, { 1, 32, 160 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 18),
{ 0, 0, height }, { { 0, 0, height }, { 1, 32, 160 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::bottomCorner, PaintSegment::bottomRightSide, PaintSegment::centre,
PaintSegment::bottomLeftSide),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 144);
break;
case 4:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 4)),
{ 0, 0, height }, { { 0, 2, height + 48 }, { 32, 32, 1 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 9)),
{ 0, 0, height }, { { 0, 2, height + 48 }, { 32, 32, 1 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 14)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 19)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::topRightSide, PaintSegment::centre, PaintSegment::bottomLeftSide,
PaintSegment::bottomCorner, PaintSegment::bottomRightSide, PaintSegment::rightCorner),
direction),
0xFFFF, 0);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height + 16, kTunnelGroup, TunnelSubType::Flat);
}
PaintUtilSetGeneralSupportHeight(session, height + 48);
break;
}
}
static void TwisterRCTrackRightMediumHalfLoopUp(
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_BM_TRACK_MEDIUM_HALF_LOOP + 20)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 25)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 30)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 35)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart);
}
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_BM_TRACK_MEDIUM_HALF_LOOP + 21)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 26)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 42)),
{ 0, 0, height }, { { 0, 32, height }, { 32, 0, 64 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 31)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 43)),
{ 0, 0, height }, { { 0, 31, height }, { 0, 32, 64 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 36)),
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::topRightSide, PaintSegment::centre, PaintSegment::bottomLeftSide,
PaintSegment::bottomCorner, PaintSegment::bottomRightSide, PaintSegment::rightCorner),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 72);
break;
case 2:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 22)),
{ 0, 0, height }, { { 0, 0, height }, { 32, 32, 0 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::BottomRightSide, 14, height, session.SupportColours);
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 27)),
{ 0, 0, height }, { { 30, 16, height }, { 0, 32, 96 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::BottomLeftSide, 18, height, session.SupportColours);
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 32)),
{ 0, 0, height }, { { 29, 0, height }, { 0, 32, 96 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::TopLeftSide, 16, height, session.SupportColours);
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 37)),
{ 0, 0, height }, { { 0, 0, height + 2 }, { 32, 32, 0 } });
MetalBSupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::TopRightSide, 14, height, session.SupportColours);
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::bottomCorner, PaintSegment::bottomRightSide, PaintSegment::centre,
PaintSegment::bottomLeftSide),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 144);
break;
case 3:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 23),
{ 0, 0, height }, { { 0, 0, height }, { 1, 32, 160 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 28),
{ 0, 0, height }, { { 29, 16, height }, { 0, 16, 160 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 33),
{ 0, 0, height }, { { 0, 0, height + 140 }, { 32, 32, 3 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 38),
{ 0, 0, height }, { { 2, 0, height }, { 1, 32, 160 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::leftCorner, PaintSegment::centre, PaintSegment::topLeftSide,
PaintSegment::bottomLeftSide),
direction),
0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 144);
break;
case 4:
switch (direction)
{
case 0:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 24)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
case 1:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 29)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
case 2:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 34)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
case 3:
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex((SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 39)),
{ 0, 0, height }, { { 0, 0, height + 48 }, { 32, 32, 1 } });
break;
}
PaintUtilSetSegmentSupportHeight(
session,
PaintUtilRotateSegments(
EnumsToFlags(
PaintSegment::leftCorner, PaintSegment::topLeftSide, PaintSegment::centre, PaintSegment::topRightSide,
PaintSegment::bottomLeftSide, PaintSegment::topCorner),
direction),
0xFFFF, 0);
if (direction == 0 || direction == 3)
{
PaintUtilPushTunnelRotated(session, direction, height + 16, kTunnelGroup, TunnelSubType::Flat);
}
PaintUtilSetGeneralSupportHeight(session, height + 48);
break;
}
}
static void TwisterRCTrackLeftMediumHalfLoopDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
TwisterRCTrackRightMediumHalfLoopUp(session, ride, 4 - trackSequence, direction, height, trackElement, supportType);
}
static void TwisterRCTrackRightMediumHalfLoopDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement, SupportType supportType)
{
TwisterRCTrackLeftMediumHalfLoopUp(session, ride, 4 - trackSequence, direction, height, trackElement, supportType);
}
TRACK_PAINT_FUNCTION GetTrackPaintFunctionTwisterRC(OpenRCT2::TrackElemType trackType)
{
switch (trackType)
@@ -15426,6 +15842,16 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionTwisterRC(OpenRCT2::TrackElemType trac
case TrackElemType::RightLargeCorkscrewDown:
return TwisterRCTrackRightLargeCorkscrewDown;
// Medium half loops
case TrackElemType::LeftMediumHalfLoopUp:
return TwisterRCTrackLeftMediumHalfLoopUp;
case TrackElemType::RightMediumHalfLoopUp:
return TwisterRCTrackRightMediumHalfLoopUp;
case TrackElemType::LeftMediumHalfLoopDown:
return TwisterRCTrackLeftMediumHalfLoopDown;
case TrackElemType::RightMediumHalfLoopDown:
return TwisterRCTrackRightMediumHalfLoopDown;
default:
return nullptr;
}
@@ -23,7 +23,7 @@ constexpr RideTypeDescriptor TwisterRollerCoasterRTD =
.TrackPaintFunctions = TrackDrawerDescriptor({
.Drawer = GetTrackPaintFunctionTwisterRC,
.supportType = MetalSupportType::Tubes,
.enabledTrackGroups = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::corkscrewLarge},
.enabledTrackGroups = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium},
.extraTrackGroups = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop},
}),
.InvertedTrackPaintFunctions = {},
@@ -23,7 +23,7 @@ constexpr RideTypeDescriptor VerticalDropCoasterRTD =
.TrackPaintFunctions = TrackDrawerDescriptor({
.Drawer = GetTrackPaintFunctionTwisterRC,
.supportType = MetalSupportType::Boxed,
.enabledTrackGroups = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::flatToSteepSlope, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::halfLoopLarge, TrackGroup::brakeForDrop, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
.enabledTrackGroups = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::flatToSteepSlope, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::halfLoopLarge, TrackGroup::brakeForDrop, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::halfLoopMedium},
.extraTrackGroups = {TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist},
}),
.InvertedTrackPaintFunctions = {},
+2 -1
View File
@@ -1287,7 +1287,8 @@ enum : ImageIndex
SPR_G2_BM_BOOSTER_NE_SW = SPR_G2_BM_DIAG_BRAKES + 6,
SPR_G2_BM_BOOSTER_NW_SE,
SPR_G2_BM_TRACK_LARGE_CORKSCREW,
SPR_G2_BM_RC_END = SPR_G2_BM_TRACK_LARGE_CORKSCREW + 40,
SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP = SPR_G2_BM_TRACK_LARGE_CORKSCREW + 40,
SPR_G2_BM_RC_END = SPR_G2_BM_TRACK_MEDIUM_HALF_LOOP + 44,
SPR_G2_MINIATURE_RAILWAY_BEGIN = SPR_G2_BM_RC_END,
SPR_G2_MINIATURE_RAILWAY_QUARTER_TURN_3_TILES_SW_SE_PART_3 = SPR_G2_MINIATURE_RAILWAY_BEGIN,