This commit is contained in:
Your Name
2020-09-11 19:56:01 -06:00
parent f6b46378b0
commit 8d615c6411
2 changed files with 151 additions and 5 deletions

View File

@ -41,6 +41,24 @@ BotPressAttack(time)
self maps\mp\bots\_bot_internal::pressFire(time);
}
getValidTube()
{
weaps = self getweaponslistall();
for (i = 0; i < weaps.size; i++)
{
weap = weaps[i];
if(!self getAmmoCount(weap))
continue;
if ((isSubStr(weap, "gl_") && !isSubStr(weap, "_gl_")) || weap == "m79_mp")
return weap;
}
return undefined;
}
/*
Returns a random grenade in the bot's inventory.
*/
@ -197,6 +215,16 @@ ClearScriptAimPos()
self SetScriptAimPos(undefined);
}
GetScriptAimPos()
{
return self.bot.script_aimpos;
}
HasScriptAimPos()
{
return isDefined(self GetScriptAimPos());
}
SetBotJavelinLocation(loc)
{
self.bot.jav_loc = loc;