mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-19 15:02:53 +00:00
add check
This commit is contained in:
parent
58c8498991
commit
3abc261aed
@ -2207,6 +2207,13 @@ do_knife_target( target )
|
||||
self endon( "disconnect" );
|
||||
self endon( "bot_knife" );
|
||||
|
||||
if ( !getDvarInt( "aim_automelee_enabled" ) || !self isOnGround() || self GetStance() == "prone" || self InLastStand() )
|
||||
{
|
||||
self.bot.knifing_target = undefined;
|
||||
self BotBuiltinBotMeleeParams( 0, 0 );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !isDefined( target ) || ( !isPlayer( target ) && !isai( target ) ) )
|
||||
{
|
||||
self.bot.knifing_target = undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user