mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-07-03 06:18:02 +00:00
feat: implement bot name retrieval from botnames.txt
This commit is contained in:
+12
-1
@@ -775,7 +775,18 @@ added()
|
||||
*/
|
||||
add_bot()
|
||||
{
|
||||
bot = addtestclient();
|
||||
name = getABotName();
|
||||
|
||||
bot = undefined;
|
||||
|
||||
if ( isdefined( name ) && name.size >= 3 )
|
||||
{
|
||||
bot = addtestclient( name );
|
||||
}
|
||||
else
|
||||
{
|
||||
bot = addtestclient();
|
||||
}
|
||||
|
||||
if ( isdefined( bot ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user