mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
fix
This commit is contained in:
parent
f54c1f6e97
commit
7fc357f67d
@ -862,15 +862,15 @@ stance_loop()
|
|||||||
if ( toStance == "stand" && randomInt( 100 ) <= self.pers["bots"]["behavior"]["crouch"] )
|
if ( toStance == "stand" && randomInt( 100 ) <= self.pers["bots"]["behavior"]["crouch"] )
|
||||||
toStance = "crouch";
|
toStance = "crouch";
|
||||||
|
|
||||||
|
if ( self.hasRiotShieldEquipped && isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) && isPlayer( self.bot.target.entity ) )
|
||||||
|
toStance = "crouch";
|
||||||
|
|
||||||
if ( toStance == "climb" )
|
if ( toStance == "climb" )
|
||||||
{
|
{
|
||||||
self.bot.climbing = true;
|
self.bot.climbing = true;
|
||||||
toStance = "stand";
|
toStance = "stand";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( self.hasRiotShieldEquipped && isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) && isPlayer( self.bot.target.entity ) )
|
|
||||||
toStance = "crouch";
|
|
||||||
|
|
||||||
if ( toStance != "stand" && toStance != "crouch" && toStance != "prone" )
|
if ( toStance != "stand" && toStance != "crouch" && toStance != "prone" )
|
||||||
toStance = "crouch";
|
toStance = "crouch";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user