Server configuration: consider a player disconected

Locked
Nfjord
Posts: 2
Joined: Mon Jan 04, 2010 3:54 pm

Server configuration: consider a player disconected

Post 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.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Server configuration: consider a player disconected

Post by ^misantropia^ »

sv_timeout and sv_zombietime are the cvars you want. Both are measured in seconds.
Nfjord
Posts: 2
Joined: Mon Jan 04, 2010 3:54 pm

Re: Server configuration: consider a player disconected

Post by Nfjord »

Exactly what I wanted! Thank you very much! :)
Locked