From 063ced7b47dc18ed7781fcfb8aa5a35c09067c52 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 12 Sep 2019 19:35:59 +0200 Subject: [PATCH] busroute only in bus job --- ReallifeGamemode.Server/Job/BusDriverJob.cs | 18 ++++++++++++++++++ ReallifeGamemode.Server/Job/JobBase.cs | 10 ---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index 1f3536f6..8eee0f0b 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -13,5 +13,23 @@ namespace ReallifeGamemode.Server.Job public override string Name => "Busfahrer"; public override bool NeedVehicleToStart => true; + + public BusDriverJob() + { + JobStart += BusDriverJob_JobStart; + } + + private void BusDriverJob_JobStart(Client player) + { + List list = new List(); + list.Add(new Vector3(-105.5951, -1684.548, 29.23948)); + list.Add(new Vector3(-1056.246, -2552.576, 13.66063)); + list.Add(new Vector3(200.3088, -1978.828, 19.3329)); + list.Add(new Vector3(358.6138, -1785.821, 28.92113)); + list.Add(new Vector3(281.8594, -1462.503, 29.13148)); + list.Add(new Vector3(77.72239, -1212.086, 29.12294)); + list.Add(new Vector3(218.1398, -850.9549, 30.16619)); + CheckPointHandle.startCheckPointRoute(player, list); + } } } diff --git a/ReallifeGamemode.Server/Job/JobBase.cs b/ReallifeGamemode.Server/Job/JobBase.cs index 34e87585..97d9de61 100644 --- a/ReallifeGamemode.Server/Job/JobBase.cs +++ b/ReallifeGamemode.Server/Job/JobBase.cs @@ -37,16 +37,6 @@ namespace ReallifeGamemode.Server.Job ChatService.SendMessage(player, $"~y~[JOB]~s~ Du hast deinen Job ~o~{this.Name}~s~ gestartet."); JobStart?.Invoke(player); - - List list = new List(); - list.Add(new Vector3(-105.5951, -1684.548, 29.23948)); - list.Add(new Vector3(-1056.246, -2552.576, 13.66063)); - list.Add(new Vector3(200.3088, -1978.828, 19.3329)); - list.Add(new Vector3(358.6138, -1785.821, 28.92113)); - list.Add(new Vector3(281.8594, -1462.503, 29.13148)); - list.Add(new Vector3(77.72239, -1212.086, 29.12294)); - list.Add(new Vector3(218.1398, -850.9549, 30.16619)); - CheckPointHandle.startCheckPointRoute(player, list); } public void StopJob(Client player, bool quit = false)