Bots crouch with riot

This commit is contained in:
ineed bots 2022-04-03 14:33:16 -06:00
parent fd5d1272fe
commit 9b8627ba4b
2 changed files with 9 additions and 0 deletions

View File

@ -2854,6 +2854,7 @@ bot_watch_riot_weapons_loop()
threat = self GetThreat(); threat = self GetThreat();
dist = DistanceSquared( threat.origin, self.origin ); dist = DistanceSquared( threat.origin, self.origin );
curWeap = self GetCurrentWeapon(); curWeap = self GetCurrentWeapon();
self BotCrouch();
if ( randomInt( 2 ) ) if ( randomInt( 2 ) )
{ {

View File

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