Halflife: Send drop packet on application exit.

Created on 6 Aug 2019  路  6Comments  路  Source: ValveSoftware/halflife

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.

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

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WhiteFang1319 picture WhiteFang1319  路  3Comments

magister4813 picture magister4813  路  3Comments

LuckyStrikeOriginal picture LuckyStrikeOriginal  路  4Comments

perforatorRU picture perforatorRU  路  3Comments

BlackShadow picture BlackShadow  路  3Comments