mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
small fix
This commit is contained in:
parent
f0db932a5a
commit
814cd9609e
@ -1669,7 +1669,7 @@ aim_loop()
|
|||||||
|
|
||||||
conedot = getConeDot( aimpos, eyePos, angles );
|
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 );
|
self thread bot_lookat( aimpos, 0.05 );
|
||||||
else
|
else
|
||||||
self thread bot_lookat( aimpos, aimspeed, target getVelocity(), true );
|
self thread bot_lookat( aimpos, aimspeed, target getVelocity(), true );
|
||||||
@ -1683,7 +1683,7 @@ aim_loop()
|
|||||||
|
|
||||||
conedot = getConeDot( aimpos, eyePos, angles );
|
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 );
|
self thread bot_lookat( aimpos, 0.05 );
|
||||||
else
|
else
|
||||||
self thread bot_lookat( aimpos, aimspeed );
|
self thread bot_lookat( aimpos, aimspeed );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user