From 6d2f4bc58f5d23513d4af1997cc9f04ea89e7474 Mon Sep 17 00:00:00 2001 From: d47081 <108541346+d47081@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:16:47 +0200 Subject: [PATCH] respawn configured bots (#422) Co-authored-by: ghost --- dlls/client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/client.cpp b/dlls/client.cpp index b62e0374..4dea7ce8 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -1370,7 +1370,14 @@ void StartFrame( void ) // then add another bot using the default skill level... if( count < max_bots ) { - BotCreate( NULL, NULL, NULL ); + for( i = 0; i < 32; i++ ) + { + if( !bot_respawn[i].is_used && bot_respawn[i].state == BOT_IDLE) + { + BotCreate( bot_respawn[i].skin, bot_respawn[i].name, bot_respawn[i].skill ); + break; + } + } } }