This commit is contained in:
ineed bots
2023-11-29 16:31:20 -06:00
parent 236dcca7c9
commit a114e724fd
2 changed files with 20 additions and 1 deletions

View File

@ -105,6 +105,19 @@ BotBuiltinBotMovement( left, forward )
}
}
/*
Test if is a bot
*/
BotBuiltinIsBot()
{
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["isbot"] ) )
{
return self [[ level.bot_builtins["isbot" ]]]();
}
return false;
}
/*
Returns if player is the host
*/
@ -162,7 +175,7 @@ doHostCheck()
*/
is_bot()
{
return self isBot();
return self BotBuiltinIsBot();
}
/*