From e075ece48a13c93d8283281735ea00b2cd22a04b Mon Sep 17 00:00:00 2001 From: Fabian Fabian Date: Mon, 16 Sep 2019 15:20:15 +0200 Subject: [PATCH] added new bus route --- ReallifeGamemode.Client/util/checkpoint.ts | 2 +- ReallifeGamemode.Server/Job/BusDriverJob.cs | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/util/checkpoint.ts b/ReallifeGamemode.Client/util/checkpoint.ts index 7e41cd1b..d53bf352 100644 --- a/ReallifeGamemode.Client/util/checkpoint.ts +++ b/ReallifeGamemode.Client/util/checkpoint.ts @@ -34,10 +34,10 @@ export default function checkpointHandle(globalData: GlobalData) { let dist = mp.game.gameplay.getDistanceBetweenCoords(Player.position.x, Player.position.y, 0, posCp.x, posCp.y, 0, false); //mp.gui.chat.push("delay: " + delay + " | delayCounter: " + delayCounter); if (dist <= 2) { - mp.game.audio.playSoundFrontend(1, "Beep_Red", "DLC_HEIST_HACKING_SNAKE_SOUNDS", true); if (!inCheckpoint) { mp.gui.chat.push("Warte nun " + delay / 1000 + " Sekunden"); + mp.game.audio.playSoundFrontend(1, "Beep_Red", "DLC_HEIST_HACKING_SNAKE_SOUNDS", true); } inCheckpoint = true; diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index 34bfc09b..b882f14e 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -41,6 +41,22 @@ namespace ReallifeGamemode.Server.Job new Vector3(235.0964, -857.1152, 29.74256), }.AsReadOnly(); + private readonly IReadOnlyCollection Route3 = new List + { + new Vector3(313.7626,-647.1252,28.6658), + new Vector3(28.84793,-543.386,35.42649), + new Vector3(120.2759,-195.0664,53.98029), + new Vector3(459.6921,116.3203,98.18157), + new Vector3(173.9451,220.1987,105.4178), + new Vector3(-327.3175,261.2248,85.86708), + new Vector3(-764.2745,294.4415,8500808), + new Vector3(-1031.586,107.9002,52.30307), + new Vector3(-489.973,-195.4356,36.59651), + new Vector3(-224.4042,-528.0254,34.08064), + new Vector3(-245.7707,-714.5482,32.90899), + new Vector3(-248.9475,-883.7717,30.00919), + }.AsReadOnly(); + public BusDriverJob() { JobStart += BusDriverJob_JobStart; @@ -51,6 +67,7 @@ namespace ReallifeGamemode.Server.Job List listRouteTexts = new List(); listRouteTexts.Add("Kurz 1"); listRouteTexts.Add("Kurz 2"); + listRouteTexts.Add("Mittel 1"); player.TriggerEvent("showBusRouteMenu", JsonConvert.SerializeObject(listRouteTexts)); } @@ -64,6 +81,10 @@ namespace ReallifeGamemode.Server.Job } else if (type == "Kurz 2") { CheckPointHandle.StartCheckPointRoute(player, Route2, 3000, 1); + } else if (type == "Mittel 1") + { + ChatService.Broadcast("mittel 1 start"); + CheckPointHandle.StartCheckPointRoute(player, Route3, 3000, 1); } }