Added frag and smoke api

This commit is contained in:
Your Name 2020-07-25 21:11:34 -06:00
parent 8aeca87111
commit c2bb898552
2 changed files with 19 additions and 1 deletions

View File

@ -795,8 +795,16 @@ bot_think_camp()
if(randomInt(100) > self.pers["bots"]["behavior"]["camp"])
continue;
if (true)
continue;
self SetScriptAimPos((0,0,0));
self SetScriptGoal(self.origin, 64);
if (randomInt(2) > 1)
self thread BotPressFrag(1);
else
self thread BotPressSmoke(1);
}
}

View File

@ -34,6 +34,16 @@ BotGetRandom()
return self.bot.rand;
}
BotPressFrag(time)
{
self maps\mp\bots\_bot_internal::frag(time);
}
BotPressSmoke(time)
{
self maps\mp\bots\_bot_internal::smoke(time);
}
/*
Returns if the bot is fragging.
*/