mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
Reduce var usage
This commit is contained in:
@ -447,6 +447,27 @@ getValidTube()
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/*
|
||||
helper
|
||||
*/
|
||||
waittill_either_return_(str1, str2)
|
||||
{
|
||||
self endon(str1);
|
||||
self waittill(str2);
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns which string gets notified first
|
||||
*/
|
||||
waittill_either_return(str1, str2)
|
||||
{
|
||||
if (!isDefined(self waittill_either_return_(str1, str2)))
|
||||
return str1;
|
||||
|
||||
return str2;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns a random grenade in the bot's inventory.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user