mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
Fix up some mantling issues
This commit is contained in:
parent
5a5f5dec58
commit
c2c7b94c79
@ -587,7 +587,7 @@ doBotMovement()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// check if need to crouch
|
// 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();
|
self crouch();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -689,6 +689,9 @@ stance()
|
|||||||
if (!isDefined(toStance))
|
if (!isDefined(toStance))
|
||||||
toStance = "crouch";
|
toStance = "crouch";
|
||||||
|
|
||||||
|
if(toStance == "stand" && randomInt(100) <= self.pers["bots"]["behavior"]["crouch"])
|
||||||
|
toStance = "crouch";
|
||||||
|
|
||||||
if(toStance == "climb")
|
if(toStance == "climb")
|
||||||
{
|
{
|
||||||
self.bot.climbing = true;
|
self.bot.climbing = true;
|
||||||
@ -698,9 +701,6 @@ stance()
|
|||||||
if(toStance != "stand" && toStance != "crouch" && toStance != "prone")
|
if(toStance != "stand" && toStance != "crouch" && toStance != "prone")
|
||||||
toStance = "crouch";
|
toStance = "crouch";
|
||||||
|
|
||||||
if(toStance == "stand" && randomInt(100) <= self.pers["bots"]["behavior"]["crouch"])
|
|
||||||
toStance = "crouch";
|
|
||||||
|
|
||||||
if(toStance == "stand")
|
if(toStance == "stand")
|
||||||
self stand();
|
self stand();
|
||||||
else if(toStance == "crouch")
|
else if(toStance == "crouch")
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 1d01e479169bf36b21cb065c736cddcbefc5622a
|
Subproject commit ceae192c2343330ab407838db35edfd7d24b18b6
|
Loading…
x
Reference in New Issue
Block a user