mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-10-18 07:53:26 +00:00
prevent bots aimbotting other targets when knifing
This commit is contained in:
1 parent
17bceafb23
commit
bd0f834eb9
1 file changed
+1
-1
@@ -1718,7 +1718,7 @@ aim_loop()
|
||||
|
||||
conedot = getConeDot( aimpos, eyePos, angles );
|
||||
|
||||
if ( isdefined( self.bot.knifing_target ) )
|
||||
if ( isdefined( self.bot.knifing_target ) && self.bot.knifing_target == target )
|
||||
{
|
||||
self thread bot_lookat( target gettagorigin( "j_spine4" ), 0.05 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user