/* =============== G_CheckBotSpawn =============== */ void G_CheckBotSpawn( void ) { int n; // MJN - added check here if ( g_mAllowBotLimit.integer ){ M_CheckMinimumBotPlayers(); } else{ G_CheckMinimumPlayers(); } for( n = 0; n < BOT_SPAWN_QUEUE_DEPTH; n++ ) { if( !botSpawnQueue[n].spawnTime ) { continue; } if ( botSpawnQueue[n].spawnTime > level.time ) { continue; } ClientBegin( botSpawnQueue[n].clientNum, qfalse ); botSpawnQueue[n].spawnTime = 0; /* if( g_gametype.integer == GT_SINGLE_PLAYER ) { trap_GetUserinfo( botSpawnQueue[n].clientNum, userinfo, sizeof(userinfo) ); PlayerIntroSound( Info_ValueForKey (userinfo, "model") ); } */ } }
/* =============== G_CheckBotSpawn =============== */ void G_CheckBotSpawn(void) { int n; char userinfo[MAX_INFO_VALUE]; G_CheckMinimumPlayers(); for(n = 0; n < BOT_SPAWN_QUEUE_DEPTH; n++) { if(!botSpawnQueue[n].spawnTime) { continue; } if(botSpawnQueue[n].spawnTime > level.time) { continue; } ClientBegin(botSpawnQueue[n].clientNum); botSpawnQueue[n].spawnTime = 0; if(g_gametype.integer == GT_SINGLE_PLAYER) { trap_GetUserinfo(botSpawnQueue[n].clientNum, userinfo, sizeof(userinfo)); PlayerIntroSound(Info_ValueForKey(userinfo, "model")); } } }
/* =============== G_CheckBotSpawn =============== */ void G_CheckBotSpawn( void ) { int n; G_CheckMinimumPlayers(); for( n = 0; n < BOT_SPAWN_QUEUE_DEPTH; n++ ) { if( !botSpawnQueue[n].spawnTime ) { continue; } if ( botSpawnQueue[n].spawnTime > level.time ) { continue; } ClientBegin( botSpawnQueue[n].clientNum ); botSpawnQueue[n].spawnTime = 0; } }
/* =============== G_CheckBotSpawn =============== */ void G_CheckBotSpawn( void ) { int n; G_CheckMinimumPlayers(); for( n = 0; n < BOT_SPAWN_QUEUE_DEPTH; n++ ) { if( !botSpawnQueue[n].spawnTime ) { continue; } if ( botSpawnQueue[n].spawnTime > level.time ) { continue; } ClientBegin( botSpawnQueue[n].clientNum, qfalse ); botSpawnQueue[n].spawnTime = 0; /* if( level.gametype == GT_SINGLE_PLAYER ) { trap->GetUserinfo( botSpawnQueue[n].clientNum, userinfo, sizeof(userinfo) ); PlayerIntroSound( Info_ValueForKey (userinfo, "model") ); } */ } }