mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-27 06:41:51 +00:00
bones
This commit is contained in:
@ -203,6 +203,7 @@ spawned()
|
|||||||
self thread stance();
|
self thread stance();
|
||||||
self thread walk();
|
self thread walk();
|
||||||
self thread target();
|
self thread target();
|
||||||
|
self thread updateBones();
|
||||||
self thread aim();
|
self thread aim();
|
||||||
self thread watchHoldBreath();
|
self thread watchHoldBreath();
|
||||||
self thread onNewEnemy();
|
self thread onNewEnemy();
|
||||||
@ -462,6 +463,22 @@ reload_thread()
|
|||||||
self thread reload();
|
self thread reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateBones()
|
||||||
|
{
|
||||||
|
self endon("disconnect");
|
||||||
|
self endon("death");
|
||||||
|
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
self waittill_notify_or_timeout("new_enemy", self.pers["bots"]["skill"]["bone_update_interval"]);
|
||||||
|
|
||||||
|
if (!isDefined(self.bot.target))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
self.bot.target.bone = random(self.pers["bots"]["skill"]["bones"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
createTargetObj(ent, theTime)
|
createTargetObj(ent, theTime)
|
||||||
{
|
{
|
||||||
obj = spawnStruct();
|
obj = spawnStruct();
|
||||||
|
Reference in New Issue
Block a user