From 09c481fb8e6331ea3233c374bd616fadc0459a45 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 13 Jan 2024 06:21:02 +0200 Subject: [PATCH] add missed respawn_time delay by current implementation --- dlls/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/client.cpp b/dlls/client.cpp index 8d3a77c6..bf28476d 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -1368,13 +1368,15 @@ void StartFrame( void ) // if there are currently less than the maximum number of "players" // then add another bot using the default skill level... - if( count < max_bots ) + if( ( count < max_bots ) && ( gpGlobals->time >= respawn_time ) ) { 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 ); + + respawn_time = gpGlobals->time + 1.0; // set next respawn time break; } }