From de463e85065d518d3a1110593d561db9c835f510 Mon Sep 17 00:00:00 2001 From: GrafDimenzio Date: Mon, 14 Dec 2020 20:02:38 +0100 Subject: [PATCH] fixed Workstation bug --- MoreWeapons/Handlers/Scp1499Handler.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/MoreWeapons/Handlers/Scp1499Handler.cs b/MoreWeapons/Handlers/Scp1499Handler.cs index de2ec9a..14b0d51 100644 --- a/MoreWeapons/Handlers/Scp1499Handler.cs +++ b/MoreWeapons/Handlers/Scp1499Handler.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using Synapse; -using Synapse.Config; using MEC; using UnityEngine; @@ -8,8 +7,6 @@ namespace MoreWeapons.Handlers { public class Scp1499Handler { - private readonly SerializedMapPoint stationposition = new SerializedMapPoint("HCZ_049", -6.5f, 263.5f, 24f); - public Scp1499Handler() { Server.Get.ItemManager.RegisterCustomItem(new Synapse.Api.Items.CustomItemInformation @@ -22,19 +19,12 @@ public Scp1499Handler() Server.Get.Events.Player.PlayerPickUpItemEvent += OnPickup; Server.Get.Events.Player.PlayerItemUseEvent += OnUse; Server.Get.Events.Player.LoadComponentsEvent += OnLoad; - Server.Get.Events.Round.WaitingForPlayersEvent += OnWaiting; Server.Get.Events.Player.PlayerSetClassEvent += OnSetClass; } private void OnSetClass(Synapse.Api.Events.SynapseEventArguments.PlayerSetClassEventArgs ev) => ev.Player.GetComponent().IsInDimension = false; - private void OnWaiting() - { - var point = stationposition.Parse(); - SynapseController.Server.Map.CreateWorkStation(point.Position,point.Room.GameObject.transform.rotation.eulerAngles,new Vector3(3f,3f,0.1f)); - } - private void OnLoad(Synapse.Api.Events.SynapseEventArguments.LoadComponentEventArgs ev) { if (ev.Player.GetComponent() == null)