mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 02:15:42 +00:00
Added frag and smoke api
This commit is contained in:
parent
8aeca87111
commit
c2bb898552
@ -796,7 +796,15 @@ bot_think_camp()
|
|||||||
if(randomInt(100) > self.pers["bots"]["behavior"]["camp"])
|
if(randomInt(100) > self.pers["bots"]["behavior"]["camp"])
|
||||||
continue;
|
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;
|
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.
|
Returns if the bot is fragging.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user