Add riverboat captain career and distinct ship classes
Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
@@ -34,6 +34,7 @@ namespace BigShipTycoon
|
||||
return false;
|
||||
|
||||
ShowDeck(-1);
|
||||
HideRiverBanks();
|
||||
cinematicPort = port;
|
||||
portArrival = arriving;
|
||||
portFrame = 0;
|
||||
@@ -43,7 +44,7 @@ namespace BigShipTycoon
|
||||
resumeHull = water.GetVector("_HullSpan");
|
||||
resumeCourse = water.GetVector("_HullCourse");
|
||||
|
||||
float berthLength = MegaPortBerth ? vesselLength + 44f : RegionalQuayLength;
|
||||
float berthLength = MegaPortBerth ? vesselLength + 44f : displayedShip?.HullIndex == Market.River ? 44f : RegionalQuayLength;
|
||||
if (portQuay == null || !Mathf.Approximately(quayLength, berthLength))
|
||||
{
|
||||
ReleaseCinematicQuay();
|
||||
@@ -79,8 +80,9 @@ namespace BigShipTycoon
|
||||
portFrame = Mathf.Clamp01(elapsed / PortCinematicDuration);
|
||||
var (center, heading, knots) = PortMotion(portFrame);
|
||||
float heave = Mathf.Sin(elapsed * 1.87f + .7f) * .052f;
|
||||
float roll = Mathf.Sin(elapsed * 1.24f + 1.1f) * .29f;
|
||||
vessel.SetLocalPositionAndRotation(new Vector3(center.x, heave, center.y), Quaternion.Euler(roll, heading, 0));
|
||||
float roll = Mathf.Sin(elapsed * 1.24f + 1.1f) * (displayedShip?.HullIndex == Market.River ? .65f : .29f);
|
||||
vessel.SetLocalPositionAndRotation(new Vector3(center.x, heave, center.y),
|
||||
Quaternion.AngleAxis(heading, Vector3.up) * Quaternion.AngleAxis(roll, Vector3.right));
|
||||
water.SetVector("_HullSpan", new Vector4(vesselLength, vesselBeam, center.x, center.y));
|
||||
Vector2 course = PortBow(heading);
|
||||
water.SetVector("_HullCourse", new Vector4(course.x, -course.y, Mathf.Clamp01(knots / 19f), 0));
|
||||
|
||||
Reference in New Issue
Block a user