From 4e9192d16e9d15e36a5e0e48836e24cbcb75306e Mon Sep 17 00:00:00 2001 From: ineedbots Date: Sun, 25 Jul 2021 21:58:14 -0600 Subject: [PATCH] small fix --- raw/maps/mp/bots/_bot_script.gsc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/raw/maps/mp/bots/_bot_script.gsc b/raw/maps/mp/bots/_bot_script.gsc index 59d1db4..0463d63 100644 --- a/raw/maps/mp/bots/_bot_script.gsc +++ b/raw/maps/mp/bots/_bot_script.gsc @@ -2069,9 +2069,8 @@ follow_target() if ( randomInt( 100 ) > self.pers["bots"]["behavior"]["follow"] * 5 ) continue; - 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(); @@ -3545,8 +3544,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();