From dc06e7595ccf6bc185b20448b5361b34f3e44c73 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 15 Sep 2020 01:53:25 -0600 Subject: [PATCH] camp if remote streak --- userraw/maps/mp/bots/_bot_script.gsc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/userraw/maps/mp/bots/_bot_script.gsc b/userraw/maps/mp/bots/_bot_script.gsc index 6082079..0234a80 100644 --- a/userraw/maps/mp/bots/_bot_script.gsc +++ b/userraw/maps/mp/bots/_bot_script.gsc @@ -1227,7 +1227,7 @@ killCampAfterTime(time) self endon("disconnect"); self endon("kill_camp_bot"); - wait time; + wait time + 0.05; self ClearScriptGoal(); self ClearScriptAimPos(); @@ -2777,7 +2777,27 @@ bot_killstreak_think() { if (self inLastStand()) continue; - // what about going to a safe (camp) location before using a remote? + + if (self.pers["killstreaks"][0].lifeId <= self.pers["deaths"] && !self HasScriptGoal() && !self.bot_lock_goal && streakName != "sentry") + { + campSpots = []; + for (i = 0; i < level.waypointsCamp.size; i++) + { + if (Distance(self.origin, level.waypointsCamp[i].origin) > 1024) + continue; + + campSpots[campSpots.size] = level.waypointsCamp[i]; + } + campSpot = random(campSpots); + + if (isDefined(campSpot)) + { + self SetScriptGoal(campSpot.origin, 16); + + if (self waittill_any_return("new_goal", "goal", "bad_path") != "new_goal") + self ClearScriptGoal(); + } + } if (streakName == "sentry") {