Small fix

This commit is contained in:
ineedbots 2021-07-25 21:56:09 -06:00
parent e606af216c
commit d9a8ac04c4

View File

@ -2054,9 +2054,8 @@ follow_target_loop()
if ( randomInt( 100 ) > self.pers["bots"]["behavior"]["follow"] * 5 )
return;
self thread stop_go_target_on_death( threat );
self SetScriptGoal( threat.origin, 64 );
self thread stop_go_target_on_death( threat );
if ( self waittill_any_return( "new_goal", "goal", "bad_path" ) != "new_goal" )
self ClearScriptGoal();
@ -2621,8 +2620,8 @@ bot_uav_think_loop()
if ( !self HasScriptGoal() && !self.bot_lock_goal )
{
self thread stop_go_target_on_death( player );
self SetScriptGoal( player.origin, 128 );
self thread stop_go_target_on_death( player );
if ( self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal" )
self ClearScriptGoal();