keeping autismbots in spec until 3 valid players are present

This commit is contained in:
jenz 2025-12-12 12:46:09 +01:00
parent 220c0f7215
commit 1237ae8f28

View File

@ -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++)