fixed hotel

This commit is contained in:
INeedBots 2021-02-05 02:54:00 -06:00
parent 8f0dd0ee2c
commit 495e0c3579

View File

@ -658,6 +658,58 @@ bot_damage_callback( eAttacker, iDamage, sMeansOfDeath, sWeapon, eInflictor, sHi
self maps\mp\bots\_bot_script::bot_damage_callback( eAttacker, iDamage, sMeansOfDeath, sWeapon, eInflictor, sHitLoc );
}
/*
Bot is idle
*/
bot_is_idle()
{
if ( !IsDefined( self ) )
{
return false;
}
if ( !IsAlive( self ) )
{
return false;
}
if ( !self is_bot() )
{
return false;
}
if ( self inLastStand() )
{
return false;
}
if ( self HasScriptGoal() )
{
return false;
}
if ( IsDefined( self GetThreat() ) )
{
return false;
}
if ( self IsRemoteControlling() || self.bot_lock_goal )
{
return false;
}
if(self UseButtonPressed())
return false;
if(self isPlanting())
return false;
if(self isDefusing())
return false;
return true;
}
/*
Watch all players grenades
*/