fix carepackage

This commit is contained in:
INeedBots 2021-01-09 00:18:56 -06:00
parent fc9b03d9ac
commit dd0e1bbb5d

View File

@ -3415,12 +3415,7 @@ bot_crate_think()
continue; continue;
if ( self HasScriptGoal() || self.bot_lock_goal ) if ( self HasScriptGoal() || self.bot_lock_goal )
{
wait 0.1;//because bot_crate_landed notify causes a same frame ClearScriptGoal
if( self HasScriptGoal() || self.bot_lock_goal )
continue; continue;
}
if(self isDefusing() || self isPlanting()) if(self isDefusing() || self isPlanting())
continue; continue;
@ -3428,6 +3423,9 @@ bot_crate_think()
if(self IsUsingRemote() || self BotIsFrozen()) if(self IsUsingRemote() || self BotIsFrozen())
continue; continue;
if (self inLastStand())
continue;
crates = getEntArray( "care_package", "targetname" ); crates = getEntArray( "care_package", "targetname" );
if ( crates.size == 0 ) if ( crates.size == 0 )
continue; continue;