mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-06-25 05:41:56 +00:00
fixed hotel
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user