some stuff

This commit is contained in:
ineed bots
2023-07-11 23:01:06 -06:00
parent aae462fb95
commit 3d3c7e7fa4
3 changed files with 139 additions and 1 deletions

View File

@@ -1309,7 +1309,7 @@ aim_loop()
self thread bot_lookat( aimpos, aimspeed );
}
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 && !self.bot.isreloading && getDvarInt( "bots_play_knife" ) )
{
self clear_bot_after_target();
self thread knife();