mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 15:44:49 +00:00
Fix jug loadout
This commit is contained in:
parent
eba8a7987b
commit
d5b27bc9ef
@ -1539,12 +1539,15 @@ onDeath()
|
|||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
|
|
||||||
|
self thread onGiveLoadout();
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
self waittill("death");
|
self waittill("death");
|
||||||
|
|
||||||
self.wantSafeSpawn = true;
|
self.wantSafeSpawn = true;
|
||||||
self ClearScriptGoal();
|
self ClearScriptGoal();
|
||||||
|
|
||||||
|
self thread onGiveLoadout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1554,13 +1557,11 @@ onDeath()
|
|||||||
onGiveLoadout()
|
onGiveLoadout()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
|
self endon("death");
|
||||||
|
|
||||||
for(;;)
|
self waittill("giveLoadout");
|
||||||
{
|
|
||||||
self waittill("giveLoadout");
|
|
||||||
|
|
||||||
self botGiveLoadout(self.team, self.class, false, true);
|
self botGiveLoadout(self.team, self.class, false, true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1582,6 +1583,9 @@ onSpawned()
|
|||||||
self.bot_was_follow_script_update = undefined;
|
self.bot_was_follow_script_update = undefined;
|
||||||
self.bot_stuck_on_carepackage = undefined;
|
self.bot_stuck_on_carepackage = undefined;
|
||||||
|
|
||||||
|
// prevent bot changing class after spawning
|
||||||
|
self.hasDoneCombat = true;
|
||||||
|
|
||||||
if (getDvarInt("bots_play_obj"))
|
if (getDvarInt("bots_play_obj"))
|
||||||
self thread bot_dom_cap_think();
|
self thread bot_dom_cap_think();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user