mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
Bots crouch with riot
This commit is contained in:
parent
fd5d1272fe
commit
9b8627ba4b
@ -2854,6 +2854,7 @@ bot_watch_riot_weapons_loop()
|
||||
threat = self GetThreat();
|
||||
dist = DistanceSquared( threat.origin, self.origin );
|
||||
curWeap = self GetCurrentWeapon();
|
||||
self BotCrouch();
|
||||
|
||||
if ( randomInt( 2 ) )
|
||||
{
|
||||
|
@ -120,6 +120,14 @@ BotPressAttack( 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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user