fixed script_aimpos

This commit is contained in:
Your Name 2020-07-25 11:41:06 -06:00
parent e9c122b647
commit 3bf31e4eae

View File

@ -929,14 +929,21 @@ aim()
self ads(false); self ads(false);
self stopNading(); self stopNading();
lookat = self.bot.script_aimpos; if (!isDefined(self.bot.script_aimpos))
if(self.bot.second_next_wp != -1 && !self.bot.issprinting) {
lookat = level.waypoints[self.bot.second_next_wp].origin; lookat = undefined;
else if(isDefined(self.bot.towards_goal)) if(self.bot.second_next_wp != -1 && !self.bot.issprinting)
lookat = self.bot.towards_goal; lookat = level.waypoints[self.bot.second_next_wp].origin;
else if(isDefined(self.bot.towards_goal))
if(isDefined(lookat)) lookat = self.bot.towards_goal;
self botLookAt(lookat + (0, 0, self getEyeHeight()), aimspeed);
if(isDefined(lookat))
self botLookAt(lookat + (0, 0, self getEyeHeight()), aimspeed);
}
else
{
self botLookAt(self.bot.script_aimpos, aimspeed);
}
} }
} }