mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
More sprinting
This commit is contained in:
parent
b1295d0a21
commit
dd338ab565
@ -885,7 +885,7 @@ stance_loop()
|
||||
if(self.bot.sprintendtime != -1 && time - self.bot.sprintendtime < 2000)
|
||||
return;
|
||||
|
||||
if(!isDefined(self.bot.towards_goal) || DistanceSquared(self.origin, self.bot.towards_goal) < level.bots_minSprintDistance || getConeDot(self.bot.towards_goal, self.origin, self GetPlayerAngles()) < 0.75)
|
||||
if(!isDefined(self.bot.towards_goal) || DistanceSquared(self.origin, physicsTrace(self getEye(), self getEye() + anglesToForward(self getPlayerAngles()) * 1024, false, undefined)) < level.bots_minSprintDistance || getConeDot(self.bot.towards_goal, self.origin, self GetPlayerAngles()) < 0.75)
|
||||
return;
|
||||
|
||||
self thread sprint();
|
||||
|
Loading…
x
Reference in New Issue
Block a user