]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Throttle people trying to connect to a full server. (#20972)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Thu, 14 Mar 2024 08:00:47 +0000 (09:00 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 08:00:47 +0000 (19:00 +1100)
commit0ecc5e8c96c235af265ab747d7345b363f94b1e4
tree81105e07218d556dfa0ca357c9902356b370205a
parent3cb1c585c53f694f5ceb9720057bb765673970ec
Throttle people trying to connect to a full server. (#20972)

* Throttle people trying to connect to a full server.

To reduce spam/load on the server and connection logs table.

Players are forced to wait 30 seconds after getting denied for "server full", before they can try connecting again.

This code is an absolute nightmare mess. I tried to re-use the existing code for the redial timer but god everything here sucks so much.

Requires https://github.com/space-wizards/RobustToolbox/pull/4487

* Use new NetDisconnectMessage API instead.

* Add admin.bypass_max_players CVar.

Just something to help with debugging the player cap on dev, I don't expect this to ever be disabled on real servers.
Content.Client/Launcher/LauncherConnecting.cs
Content.Client/Launcher/LauncherConnectingGui.xaml
Content.Client/Launcher/LauncherConnectingGui.xaml.cs
Content.Server/Connection/ConnectionManager.cs
Content.Shared/CCVar/CCVars.cs