How to change the AFK timeout in L4D2
Add +director_afk_timeout 120 to the srcds_run line in .slashplay/boot.sh and click Restart; Left 4 Dead 2 doesn't accept it in the console.
director_afk_timeout
Seconds a player can stay idle before the game moves them to spectators. 45 by default.
+director_afk_timeout <seconds> Examples
+director_afk_timeout 120 Two minutes before an idle player is moved.
Arguments
secondsRequired- Idle time before a player is moved to spectators.
What it does
Raise it when players often step away during quiet moments; lower it to free survivor slots from idle players sooner.
Good to know
- Left 4 Dead 2 hides this setting from the server console, so the Console tab and server.cfg can't change it. Add
+director_afk_timeout 120to the srcds_run line in.slashplay/boot.sh(Terminal tab, under Advanced) and click Restart.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.
Your own
L4D2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.