mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-20 07:15:42 +00:00
knifing target aimbot fix
This commit is contained in:
parent
6711918420
commit
4bf18a2c21
@ -1604,7 +1604,7 @@ aim_loop()
|
||||
|
||||
conedot = getConeDot( aimpos, eyePos, angles );
|
||||
|
||||
if ( isdefined( self.bot.knifing_target ) )
|
||||
if ( isdefined( self.bot.knifing_target ) && self.bot.knifing_target == target )
|
||||
{
|
||||
self thread bot_lookat( target gettagorigin( "j_spine4" ), 0.05 );
|
||||
}
|
||||
@ -1632,7 +1632,7 @@ aim_loop()
|
||||
|
||||
conedot = getConeDot( aimpos, eyePos, angles );
|
||||
|
||||
if ( isdefined( self.bot.knifing_target ) || ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 ) )
|
||||
if ( ( isdefined( self.bot.knifing_target ) && self.bot.knifing_target == target ) || ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 ) )
|
||||
{
|
||||
self thread bot_lookat( aimpos, 0.05 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user