Page 1 of 1

Server configuration: consider a player disconected

Posted: Mon Jan 04, 2010 4:14 pm
by Nfjord
Hi players,

first, I wish you a happy new year full of frags :)

Here is my question: when an online player disconnects from the server in the middle of a game, the server continues to send to him game packets during 3 mins. After these 3 minutes, if the server didn't receive any packet from the player, it considers him disconnected and these lines appear in the log file of the server:

Code: Select all

broadcast: print "mgc1^7 timed outn"
ClientDisconnect: 1
I would like to reduce this time to consider a player as disconnected if he doesn't respond after 30 sec for example (instead of the 3 min). Is this possible? If yes, anybody know the command line to put in my server.cfg file to do so?

Thank you very much in advance.

Re: Server configuration: consider a player disconected

Posted: Mon Jan 04, 2010 5:57 pm
by ^misantropia^
sv_timeout and sv_zombietime are the cvars you want. Both are measured in seconds.

Re: Server configuration: consider a player disconected

Posted: Tue Jan 05, 2010 12:35 pm
by Nfjord
Exactly what I wanted! Thank you very much! :)