Skip to content

feat: an idle player on a practice server is warned, warned again and then kicked, so nobody can hold one by walking away - #294

Merged
lukepolo merged 1 commit into
mainfrom
feature/practice-afk-kick
Nov 3, 2026
Merged

lukepolo merged 1 commit into
mainfrom
feature/practice-afk-kick

Conversation

@lukepolo

@lukepolo lukepolo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Practice servers set mp_autokick 0, so nothing ever moved an idle player off one.

  • An idle clock per player: buttons, key changes, chat, HUD clicks, voice, and turning or moving (free-roam spectators by their observer view) reset it
  • A warning, a final warning, then a kick (NETWORK_DISCONNECT_KICKED_IDLE) at the api's afk_kick_minutes; a missing or 0 value is off, and values are clamped to 0–1440
  • The kick time is fixed at the first warning; raising the limit clears a pending warning; each warning or kick runs on its own
  • Bots, GOTV and render pods are skipped; DEAFCS's open buy menu is not ported

Needs a run in real CS2 on a 5stackgg pod before merging, including spectators in free roam versus in-eye.

From DEAFCS: https://github.com/DEAFCS/game-server/commit/543c183e, https://github.com/DEAFCS/game-server/commit/f46b89a5

… then kicked, so nobody can hold one by walking away
@lukepolo
lukepolo merged commit 164ce34 into main Nov 3, 2026
7 of 8 checks passed
@lukepolo
lukepolo deleted the feature/practice-afk-kick branch November 3, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant