mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-13 16:04:51 +00:00
bones
This commit is contained in:
parent
41046f33d2
commit
70e734b121
@ -1402,6 +1402,7 @@ spawned()
|
|||||||
self thread grenade_danager();
|
self thread grenade_danager();
|
||||||
|
|
||||||
self thread target();
|
self thread target();
|
||||||
|
self thread updateBones();
|
||||||
self thread aim();
|
self thread aim();
|
||||||
self thread check_reload();
|
self thread check_reload();
|
||||||
self thread stance();
|
self thread stance();
|
||||||
@ -1601,6 +1602,25 @@ reload_thread()
|
|||||||
self thread reload();
|
self thread reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateBones()
|
||||||
|
{
|
||||||
|
self endon("disconnect");
|
||||||
|
self endon("spawned_player");
|
||||||
|
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
self waittill_any_timeout(self.pers["bots"]["skill"]["bone_update_interval"], "new_enemy");
|
||||||
|
|
||||||
|
if (!isAlive(self))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!isDefined(self.bot.target))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
self.bot.target.bone = random(self.pers["bots"]["skill"]["bones"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The main target thread, will update the bot's main target. Will auto target enemy players and handle script targets.
|
The main target thread, will update the bot's main target. Will auto target enemy players and handle script targets.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user