mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-21 00:55:44 +00:00
fixed hotel
This commit is contained in:
parent
8f0dd0ee2c
commit
495e0c3579
@ -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 );
|
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
|
Watch all players grenades
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user