run changes

This commit is contained in:
INeedBots 2020-10-05 18:53:40 -06:00
parent 0c78d98f3f
commit e296c2a022

View File

@ -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;
}