From 8f5f1e0572fd814b641d210a484b96e56933704b Mon Sep 17 00:00:00 2001 From: ineedbots Date: Sun, 25 Jul 2021 21:56:52 -0600 Subject: [PATCH] small fix --- main_shared/maps/mp/bots/_bot_script.gsc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main_shared/maps/mp/bots/_bot_script.gsc b/main_shared/maps/mp/bots/_bot_script.gsc index fbae30d..a98416c 100644 --- a/main_shared/maps/mp/bots/_bot_script.gsc +++ b/main_shared/maps/mp/bots/_bot_script.gsc @@ -2339,9 +2339,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(); @@ -2897,8 +2896,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();