From bd0f834eb9780b6fcdfe8eb37ddafd2948316872 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 18 Jan 2024 14:52:10 -0600 Subject: [PATCH] prevent bots aimbotting other targets when knifing --- maps/mp/bots/_bot_internal.gsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/mp/bots/_bot_internal.gsc b/maps/mp/bots/_bot_internal.gsc index 1fb791d..c5b4ed0 100644 --- a/maps/mp/bots/_bot_internal.gsc +++ b/maps/mp/bots/_bot_internal.gsc @@ -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 ); }