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

View File

@ -1311,12 +1311,9 @@ 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 thread knife();
self clear_bot_after_target(); return;
self thread knife();
return;
}
} }
if ( !self canFire( curweap ) || !self isInRange( dist, curweap ) ) if ( !self canFire( curweap ) || !self isInRange( dist, curweap ) )