host func

This commit is contained in:
Your Name
2020-09-07 14:52:38 -06:00
parent 792bf42c88
commit c0bf3fbc6d
3 changed files with 24 additions and 4 deletions

View File

@ -2,6 +2,16 @@
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
is_host()
{
return (isDefined(self.pers["bot_host"]) && self.pers["bot_host"]);
}
doHostCheck()
{
self.pers["bot_host"] = false;
}
/*
Returns if the player is a bot.
*/