We must send some packet's when client close hl.exe.
second gif, after cs restarting (thru crash or close icon) im still on server.
https://github.com/ValveSoftware/halflife/issues/2064#issuecomment-518426948
I think it's easy to detect application exit and send drop(disconnect) packet's to the server.
@mikela-valve add this to current beta, i can check it asap.
For this there is sv_timeout, even the game crashing or the player closing directly, after the timeout time the player is disconnected.
:/
Just re-read again. sv_timeout is not for that, its for timeouts. Download/network and etc.
Game crashed, sv timeout 50 for example, i start game again, trying to join to the server and getting steam id lan, coz my old cs copy is on server right now.
I think server just should remove timed out user with same steamid without waiting for sv_timeout
If the server won't wait for sv_timeout then all clients will be disconnected instantly. The whole point behind the cvar is to tell the server how much time can pass between packet receipts from a client before the client is considered timed out.
If it's taking too long then lower the setting. The default is 60 seconds, that's a pretty reasonable amount of time.
@SamVanheer nah, im not talking about all clients.
Im talking only about described situation: client crashed => reconnect => check if this client already on server and timed out => drop timed out client and authorize new one
That should be possible.
Most helpful comment
@SamVanheer nah, im not talking about all clients.
Im talking only about described situation: client crashed => reconnect => check if this client already on server and timed out => drop timed out client and authorize new one