From a68410a800ef2e5e91bb2e642391e58fcd770915 Mon Sep 17 00:00:00 2001 From: ineedbots Date: Sun, 13 Jun 2021 21:15:56 -0600 Subject: [PATCH] Fix bots walking around with a killstreak --- raw/maps/mp/bots/_bot_script.gsc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/raw/maps/mp/bots/_bot_script.gsc b/raw/maps/mp/bots/_bot_script.gsc index cf01ef6..7df55a5 100644 --- a/raw/maps/mp/bots/_bot_script.gsc +++ b/raw/maps/mp/bots/_bot_script.gsc @@ -4416,6 +4416,21 @@ bot_killstreak_think_loop(data) if (self InLastStand() && !self InFinalStand()) return; + + if (isDefined(self.isCarrying) && self.isCarrying) + { + self notify("place_sentry"); + self notify("place_turret"); + self notify("place_ims"); + self notify("place_carryRemoteUAV"); + self notify("place_tank"); + } + + curWeap = self GetCurrentWeapon(); + if (isSubStr(curWeap, "airdrop_")) + self thread BotPressAttack(0.05); + + useableStreaks = []; if (!isDefined(data.doFastContinue)) @@ -4448,7 +4463,6 @@ bot_killstreak_think_loop(data) return; ksWeap = maps\mp\killstreaks\_killstreaks::getKillstreakWeapon( streakName ); - curWeap = self GetCurrentWeapon(); if (curWeap == "none" || !isWeaponPrimary(curWeap)) curWeap = self GetLastWeapon();