mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-06-29 15:51:53 +00:00
ishost builtin
This commit is contained in:
@ -222,6 +222,19 @@ BotBuiltinNotifyOnPlayerCommand( cmd, notif )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
waw doesnt have
|
||||
*/
|
||||
BotBuiltinIsHost()
|
||||
{
|
||||
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["ishost"] ) )
|
||||
{
|
||||
return self [[ level.bot_builtins["ishost" ]]]();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if player is the host
|
||||
*/
|
||||
@ -268,7 +281,7 @@ doHostCheck()
|
||||
}
|
||||
}
|
||||
|
||||
if ( !result )
|
||||
if ( !self BotBuiltinIsHost() && !result )
|
||||
return;
|
||||
|
||||
self.pers["bot_host"] = true;
|
||||
|
Reference in New Issue
Block a user