mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-06-27 14:51:56 +00:00
isbot
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user