mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-21 18:05:44 +00:00
Added frag and smoke api
This commit is contained in:
parent
8aeca87111
commit
c2bb898552
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user