mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-23 02:35:43 +00:00
fixed script_aimpos
This commit is contained in:
parent
e9c122b647
commit
3bf31e4eae
@ -929,7 +929,9 @@ aim()
|
|||||||
self ads(false);
|
self ads(false);
|
||||||
self stopNading();
|
self stopNading();
|
||||||
|
|
||||||
lookat = self.bot.script_aimpos;
|
if (!isDefined(self.bot.script_aimpos))
|
||||||
|
{
|
||||||
|
lookat = undefined;
|
||||||
if(self.bot.second_next_wp != -1 && !self.bot.issprinting)
|
if(self.bot.second_next_wp != -1 && !self.bot.issprinting)
|
||||||
lookat = level.waypoints[self.bot.second_next_wp].origin;
|
lookat = level.waypoints[self.bot.second_next_wp].origin;
|
||||||
else if(isDefined(self.bot.towards_goal))
|
else if(isDefined(self.bot.towards_goal))
|
||||||
@ -938,6 +940,11 @@ aim()
|
|||||||
if(isDefined(lookat))
|
if(isDefined(lookat))
|
||||||
self botLookAt(lookat + (0, 0, self getEyeHeight()), aimspeed);
|
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