Skip to content

Commit

Permalink
prevent bots aimbotting other targets when knifing
Browse files Browse the repository at this point in the history
  • Loading branch information
ineedbots committed Jan 18, 2024
1 parent 17bceaf commit bd0f834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps/mp/bots/_bot_internal.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit bd0f834

Please sign in to comment.