mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 18:25:44 +00:00
fixed script_aimpos
This commit is contained in:
parent
e9c122b647
commit
3bf31e4eae
@ -929,14 +929,21 @@ aim()
|
||||
self ads(false);
|
||||
self stopNading();
|
||||
|
||||
lookat = self.bot.script_aimpos;
|
||||
if(self.bot.second_next_wp != -1 && !self.bot.issprinting)
|
||||
lookat = level.waypoints[self.bot.second_next_wp].origin;
|
||||
else if(isDefined(self.bot.towards_goal))
|
||||
lookat = self.bot.towards_goal;
|
||||
|
||||
if(isDefined(lookat))
|
||||
self botLookAt(lookat + (0, 0, self getEyeHeight()), aimspeed);
|
||||
if (!isDefined(self.bot.script_aimpos))
|
||||
{
|
||||
lookat = undefined;
|
||||
if(self.bot.second_next_wp != -1 && !self.bot.issprinting)
|
||||
lookat = level.waypoints[self.bot.second_next_wp].origin;
|
||||
else if(isDefined(self.bot.towards_goal))
|
||||
lookat = self.bot.towards_goal;
|
||||
|
||||
if(isDefined(lookat))
|
||||
self botLookAt(lookat + (0, 0, self getEyeHeight()), aimspeed);
|
||||
}
|
||||
else
|
||||
{
|
||||
self botLookAt(self.bot.script_aimpos, aimspeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user