mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 15:19:14 +00:00
Better crouch riot
This commit is contained in:
parent
7e7e2edbc7
commit
f54c1f6e97
@ -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";
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user