Better crouch riot

This commit is contained in:
ineed bots 2022-04-03 18:14:19 -06:00
parent 7e7e2edbc7
commit f54c1f6e97
3 changed files with 3 additions and 10 deletions

View File

@ -868,6 +868,9 @@ stance_loop()
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" )
toStance = "crouch";

View File

@ -2833,8 +2833,6 @@ bot_watch_riot_weapons_loop()
dist = DistanceSquared( threat.origin, self.origin );
curWeap = self GetCurrentWeapon();
self BotCrouch();
if ( randomInt( 2 ) )
{
nade = self getValidGrenade();

View File

@ -120,14 +120,6 @@ BotPressAttack( time )
self maps\mp\bots\_bot_internal::pressFire( time );
}
/*
Bot will crouch
*/
BotCrouch()
{
self maps\mp\bots\_bot_internal::crouch();
}
/*
Returns a random number thats different everytime it changes target
*/