fix carepackage

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

View File

@ -3414,13 +3414,8 @@ bot_crate_think()
if ( RandomInt( 100 ) < 20 && ret != "crate_physics_done" )
continue;
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;
}
if(self isDefusing() || self isPlanting())
continue;
@ -3428,6 +3423,9 @@ bot_crate_think()
if(self IsUsingRemote() || self BotIsFrozen())
continue;
if (self inLastStand())
continue;
crates = getEntArray( "care_package", "targetname" );
if ( crates.size == 0 )
continue;