mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Adjust Polus Meeting table spawn locations
This commit is contained in:
1 parent
a621225fcd
commit
5154dd9aa5
1 file changed
+5
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user