mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-05 03:24:39 +00:00
apply changes from bot10-respawn-bots-configured branch
This commit is contained in:
parent
2827b8aa3c
commit
81932e4f42
@ -1026,12 +1026,13 @@ void StartFrame( void )
|
||||
// START BOT
|
||||
int count = 0;
|
||||
|
||||
// count total players
|
||||
if( ( g_fGameOver ) && ( respawn_time < 1.0 ) )
|
||||
{
|
||||
// if the game is over (time/frag limit) set the respawn time...
|
||||
respawn_time = 5.0;
|
||||
|
||||
// count total players
|
||||
// check if any players are using the botcam...
|
||||
for( i = 1; i <= gpGlobals->maxClients; i++ )
|
||||
{
|
||||
CBasePlayer *pPlayer = (CBasePlayer *)UTIL_PlayerByIndex( i );
|
||||
@ -1378,7 +1379,7 @@ void StartFrame( void )
|
||||
{
|
||||
if( !bot_respawn[i].is_used &&
|
||||
bot_respawn[i].state == BOT_NEED_TO_RESPAWN &&
|
||||
gpGlobals->time >= respawn_time )
|
||||
gpGlobals->time >= respawn_time)
|
||||
{
|
||||
bot_respawn[i].state = BOT_IS_RESPAWNING;
|
||||
bot_respawn[i].is_used = FALSE; // free up this slot
|
||||
|
Loading…
x
Reference in New Issue
Block a user