From 5154dd9aa59bc33d7b57d2852e28dee31a833d33 Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Tue, 15 Jun 2021 20:37:04 +0200 Subject: [PATCH] Adjust Polus Meeting table spawn locations --- .../Net/Inner/Objects/ShipStatus/InnerPolusShipStatus.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Impostor.Server/Net/Inner/Objects/ShipStatus/InnerPolusShipStatus.cs b/src/Impostor.Server/Net/Inner/Objects/ShipStatus/InnerPolusShipStatus.cs index dccbeec..c7ccc22 100644 --- a/src/Impostor.Server/Net/Inner/Objects/ShipStatus/InnerPolusShipStatus.cs +++ b/src/Impostor.Server/Net/Inner/Objects/ShipStatus/InnerPolusShipStatus.cs @@ -36,13 +36,15 @@ namespace Impostor.Server.Net.Inner.Objects.ShipStatus } Vector2 position; - if (player.PlayerId < 5) + int halfPlayers = numPlayers / 2; // floored intentionally + int spawnId = player.PlayerId % 15; + if (player.PlayerId < halfPlayers) { - position = this.MeetingSpawnCenter + (new Vector2(1, 0) * player.PlayerId); + position = this.MeetingSpawnCenter + (new Vector2(0.6f, 0) * spawnId); } else { - position = this.MeetingSpawnCenter2 + (new Vector2(1, 0) * (player.PlayerId - 5)); + position = this.MeetingSpawnCenter2 + (new Vector2(0.6f, 0) * (spawnId - halfPlayers)); } return position; -- 2.39.5