mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-10-13 06:21:26 +00:00
Fix up some mantling issues
This commit is contained in:
1 parent
5a5f5dec58
commit
c2c7b94c79
2 files changed
+5
-5
No files matched your search
@@ -587,7 +587,7 @@ doBotMovement()
|
||||
else
|
||||
{
|
||||
// check if need to crouch
|
||||
if (bulletTracePassed(startPos - (0, 0, 25), startPosForward - (0, 0, 25), false, self))
|
||||
if (bulletTracePassed(startPos - (0, 0, 25), startPosForward - (0, 0, 25), false, self) && !self.bot.climbing)
|
||||
self crouch();
|
||||
}
|
||||
|
||||
@@ -688,6 +688,9 @@ stance()
|
||||
|
||||
if (!isDefined(toStance))
|
||||
toStance = "crouch";
|
||||
|
||||
if(toStance == "stand" && randomInt(100) <= self.pers["bots"]["behavior"]["crouch"])
|
||||
toStance = "crouch";
|
||||
|
||||
if(toStance == "climb")
|
||||
{
|
||||
@@ -698,9 +701,6 @@ stance()
|
||||
if(toStance != "stand" && toStance != "crouch" && toStance != "prone")
|
||||
toStance = "crouch";
|
||||
|
||||
if(toStance == "stand" && randomInt(100) <= self.pers["bots"]["behavior"]["crouch"])
|
||||
toStance = "crouch";
|
||||
|
||||
if(toStance == "stand")
|
||||
self stand();
|
||||
else if(toStance == "crouch")
|
||||
|
||||
+1
-1
Submodule userraw/waypoints updated: 1d01e47916...ceae192c23.
Reference in new issue
Block a user