mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-23 10:45:44 +00:00
bones
This commit is contained in:
parent
03836689ff
commit
2219b684f1
@ -203,6 +203,7 @@ spawned()
|
||||
self thread stance();
|
||||
self thread walk();
|
||||
self thread target();
|
||||
self thread updateBones();
|
||||
self thread aim();
|
||||
self thread watchHoldBreath();
|
||||
self thread onNewEnemy();
|
||||
@ -462,6 +463,22 @@ reload_thread()
|
||||
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)
|
||||
{
|
||||
obj = spawnStruct();
|
||||
|
Loading…
x
Reference in New Issue
Block a user