diff --git a/main_shared/maps/mp/bots/_bot_script.gsc b/main_shared/maps/mp/bots/_bot_script.gsc index afedc4e..6f5c6fa 100644 --- a/main_shared/maps/mp/bots/_bot_script.gsc +++ b/main_shared/maps/mp/bots/_bot_script.gsc @@ -969,6 +969,9 @@ bot_inc_bots(obj, unreach) { level endon("game_ended"); self endon("bot_inc_bots"); + + if (!isDefined(obj)) + return; if (!isDefined(obj.bots)) obj.bots = 0; @@ -2089,6 +2092,8 @@ bot_revenge_think() if(!isDefined(self.killerLocation)) return; + + loc = self.killerLocation; for(;;) { @@ -2100,7 +2105,7 @@ bot_revenge_think() if ( randomint( 100 ) < 75 ) return; - self SetScriptGoal( self.killerLocation, 64 ); + self SetScriptGoal( loc, 64 ); if (self waittill_any_return( "goal", "bad_path", "new_goal" ) != "new_goal") self ClearScriptGoal();