From e78d7f411ae3ad1e78207776c9ca4677f9c64db1 Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 10 Jul 2023 18:33:35 +0200 Subject: [PATCH] Use a setting for the AFK idel time to be able to adjust it easily --- LastManStanding.Script.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LastManStanding.Script.txt b/LastManStanding.Script.txt index ba59106..e18cd73 100644 --- a/LastManStanding.Script.txt +++ b/LastManStanding.Script.txt @@ -28,6 +28,9 @@ #Setting S_ForceLapsNb 1 #Setting S_RoundsPerMap 1 as _("Number of rounds per map") ///< Number of round to play on one map before going to the next one + +#Setting S_AFKIdleTime 10000 as "Time before being an AFK player will be kicked" + #Setting S_IntroTime 5 as "Time of the map intro" #Setting S_TimeBeforeMalus 10 as "Time Before Malus" #Setting S_TimeBeforeNightmare 150 as "Time Before Nightmare" @@ -91,7 +94,7 @@ Log::RegisterScript(StateMgr::ScriptName, StateMgr::Version); *** AFK::Load(); AFK::SetCheckCP(False); // No CP in LMS -AFK::SetIdleTimeLimit(10000); +AFK::SetIdleTimeLimit(S_AFKIdleTime); AFK::SetSpawnTimeLimit(3000); AFK::SetCheckInterval(3000); StateMgr::Load();