From 1237ae8f28699d6d1c84615467a9b217ba2011f0 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 12 Dec 2025 12:46:09 +0100 Subject: [PATCH] keeping autismbots in spec until 3 valid players are present --- AutismBotIngame/scripting/autism_bot_info.sp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index c36d956..3f645df 100755 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -642,6 +642,7 @@ public Action bot_check_connect(Handle timer, any data) public Action recursive_pressing(Handle timer, any data) { bool found_valid_ct = false; + int valid_ct_counter = 0; bool found_enemy = false; for (int client = 1; client <= MaxClients; client++) { @@ -652,7 +653,11 @@ public Action recursive_pressing(Handle timer, any data) } if (!(is_bot_player[client] || IsFakeClient(client)) && GetClientTeam(client) > 1) { - found_valid_ct = true; + valid_ct_counter++; + if (valid_ct_counter >= 3) //autismbots first join when there are three active players. + { + found_valid_ct = true; + } } } for (int client = 1; client <= MaxClients; client++)