From 999e7e4cbdca1e717b18b5d25e8dd2b2ff093eaa Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 30 May 2021 06:36:34 +1000 Subject: [PATCH] Prevent idle kicking from functioning in local matches where it may kick the host --- qcsrc/server/client.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 7d3c1faca..35c27767c 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2697,6 +2697,7 @@ void PlayerPostThink (entity this) { Player_Physics(this); + if (server_is_dedicated) // don't kick the local player in hosted matches! if (autocvar_sv_maxidle > 0 || (IS_PLAYER(this) && autocvar_sv_maxidle_playertospectator > 0)) if (frametime) // WORKAROUND: only use dropclient in server frames (frametime set). Never use it in cl_movement frames (frametime zero). if (IS_REAL_CLIENT(this)) -- 2.39.2