mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
run changes
This commit is contained in:
parent
0c78d98f3f
commit
e296c2a022
@ -567,7 +567,6 @@ UseRunThink()
|
||||
lengthsquared(self.bot.velocity) <= 25 ||
|
||||
self IsStunned() || self isArtShocked() || self maps\mp\_flashgrenades::isFlashbanged())
|
||||
{
|
||||
self.bot.running = false;
|
||||
self thread doRunDelay();
|
||||
}
|
||||
}
|
||||
@ -586,9 +585,15 @@ doRunDelay()
|
||||
{
|
||||
self endon("disconnect");
|
||||
self endon("death");
|
||||
|
||||
if (!self.bot.running)
|
||||
return;
|
||||
|
||||
self notify("bot_run_delay");
|
||||
self endon("bot_run_delay");
|
||||
|
||||
self.bot.running = false;
|
||||
|
||||
if (self _hasPerk("specialty_fastsprintrecovery"))
|
||||
wait 0.5;
|
||||
else
|
||||
@ -791,6 +796,9 @@ moveHack()
|
||||
moveSpeed *= (((1 - strafeMultiplier) * botForwardMoveCone) + strafeMultiplier);
|
||||
}
|
||||
|
||||
if (self.bot.running && botForwardMoveCone < 0.5)
|
||||
self thread doRunDelay();
|
||||
|
||||
if (self.bot.climbing)
|
||||
{
|
||||
if (self _hasPerk("specialty_fastmantle"))
|
||||
@ -2969,6 +2977,7 @@ sprint()
|
||||
if (self.bot.run_time < 2.0)
|
||||
return;
|
||||
|
||||
self notify("bot_run_delay");
|
||||
self.bot.running = true;
|
||||
self.bot.runningafter = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user