This commit is contained in:
ineed bots 2023-07-11 22:33:10 -06:00
parent 2bd494c8d7
commit aae462fb95

View File

@ -1310,14 +1310,11 @@ aim_loop()
} }
if ( isActor && !self.bot.isknifingafter && conedot > 0.9 && dist < level.bots_maxKnifeDistance && trace_time > reaction_time && getDvarInt( "bots_play_knife" ) ) if ( isActor && !self.bot.isknifingafter && conedot > 0.9 && dist < level.bots_maxKnifeDistance && trace_time > reaction_time && getDvarInt( "bots_play_knife" ) )
{
if ( self canFire( curweap ) || !self getAmmoCount( curweap ) )
{ {
self clear_bot_after_target(); self clear_bot_after_target();
self thread knife(); self thread knife();
return; return;
} }
}
if ( !self canFire( curweap ) || !self isInRange( dist, curweap ) ) if ( !self canFire( curweap ) || !self isInRange( dist, curweap ) )
return; return;