small fix

This commit is contained in:
ineed bots 2023-12-10 05:20:51 -06:00
parent 73b2cf5153
commit 3a224999cc

View File

@ -1491,7 +1491,7 @@ aim_loop()
if ( isDefined( self.bot.knifing_target ) )
self thread bot_lookat( target getTagOrigin( "j_spine4" ), 0.05 );
else if ( conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
else if ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
self thread bot_lookat( aimpos, 0.05 );
else
self thread bot_lookat( aimpos, aimspeed, target getVelocity(), true );
@ -1505,7 +1505,7 @@ aim_loop()
conedot = getConeDot( aimpos, eyePos, angles );
if ( conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
if ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
self thread bot_lookat( aimpos, 0.05 );
else
self thread bot_lookat( aimpos, aimspeed );