From: miniduikboot Date: Tue, 15 Jun 2021 18:37:04 +0000 (+0200) Subject: Adjust Polus Meeting table spawn locations X-Git-Tag: v1.5.0~7^2~8 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=5154dd9aa59bc33d7b57d2852e28dee31a833d33;p=rhonda%2Fimpostor.git Adjust Polus Meeting table spawn locations --- 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;