1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 23:21:51 +00:00
This commit is contained in:
ineed bots
2023-12-11 17:15:38 -06:00
parent 2eff53e976
commit a838a56770
3 changed files with 4 additions and 14 deletions

View File

@ -5257,7 +5257,7 @@ BotLookAtRandomThing( obj_target )
}
}
origin = ( 0, 0, self GetEyeHeight() );
origin = ( 0, 0, self GetPlayerViewHeight() );
if ( isDefined( nearestEnemy ) && DistanceSquared( self.origin, nearestEnemy.origin ) < 1024 * 1024 && rand < 40 )
origin += ( nearestEnemy.origin[0], nearestEnemy.origin[1], self.origin[2] );