From d61a9bcdb8bc526ee1cf4baecf05b30d0bc5f8e3 Mon Sep 17 00:00:00 2001 From: Fabian Fabian Date: Fri, 4 Oct 2019 18:46:57 +0200 Subject: [PATCH] added another bus route --- ReallifeGamemode.Server/Job/BusDriverJob.cs | 35 +++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index e7447566..9aaad012 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -70,6 +70,27 @@ namespace ReallifeGamemode.Server.Job }.AsReadOnly(); + private readonly IReadOnlyCollection RouteVeryLong = new List + { + + new Vector3(-571.7844, -2067.18, 6.177974), + new Vector3(-889.0892, -2190.34, 8.100273), + new Vector3(-695.8978, -1197.1, 10.07723), + new Vector3(-1025.791, -788.746, 16.95118), + new Vector3(-1411.543, -569.5651, 29.83663), + new Vector3(-1863.717, -355.0997, 48.79111), + new Vector3(-2171.938, -299.1247, 12.24473), + new Vector3(-2973.008, 506.4566, 14.99877), + new Vector3(-2738.997, 2239.153, 21.54851), + new Vector3(-2448.411, 3736.997, 16.20646), + new Vector3(-2206.853, 4257.991, 47.13944), + new Vector3(-1545.054, 4934.076, 61.29264), + new Vector3(2707.136, 3309.894, 55.37453), + new Vector3(2554.981, 292.5191, 108.036), + new Vector3(-740.3124, -1645.125, 26.10983), + new Vector3(-756.3812, -2295.088, 12.43381), + }.AsReadOnly(); + public BusDriverJob() { JobStart += BusDriverJob_JobStart; @@ -81,6 +102,7 @@ namespace ReallifeGamemode.Server.Job listRouteTexts.Add("Kurz 1"); listRouteTexts.Add("Kurz 2"); listRouteTexts.Add("Mittel 1"); + listRouteTexts.Add("Lang 1"); listRouteTexts.Add("Lang wie mein Lümmel"); player.TriggerEvent("showBusRouteMenu", JsonConvert.SerializeObject(listRouteTexts)); @@ -92,16 +114,23 @@ namespace ReallifeGamemode.Server.Job if (type == "Kurz 1") { CheckPointHandle.StartCheckPointRoute(player, Route1, 3000, 1, ""); - } else if (type == "Kurz 2") + } + else if (type == "Kurz 2") { CheckPointHandle.StartCheckPointRoute(player, Route2, 3000, 1, ""); - } else if (type == "Mittel 1") + } + else if (type == "Mittel 1") { CheckPointHandle.StartCheckPointRoute(player, Route3, 3000, 1, ""); - } else if (type == "Lang wie mein Lümmel") + } + else if (type == "Lang 1") { CheckPointHandle.StartCheckPointRoute(player, RouteLong, 3000, 1, ""); } + else if (type == "Lang wie mein Lümmel") + { + CheckPointHandle.StartCheckPointRoute(player, RouteVeryLong, 3000, 1, ""); + } } }