mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-04-19 21:22:54 +00:00
add check
This commit is contained in:
parent
532eb70a47
commit
b85f5af73a
@ -2041,6 +2041,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