mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
tube
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user