Fix bots walking around with a killstreak

This commit is contained in:
ineedbots 2021-06-13 21:21:10 -06:00
parent d443aab063
commit b4bade0106

View File

@ -4107,13 +4107,21 @@ bot_killstreak_think_loop(data)
if (self InLastStand() && !self InFinalStand()) if (self InLastStand() && !self InFinalStand())
return; return;
if (isDefined(self.isCarrying) && self.isCarrying)
self notify("place_sentry");
curWeap = self GetCurrentWeapon();
if (isSubStr(curWeap, "airdrop_"))
self thread BotPressAttack(0.05);
streakName = self.pers["killstreaks"][0].streakName; streakName = self.pers["killstreaks"][0].streakName;
if (level.inGracePeriod && maps\mp\killstreaks\_killstreaks::deadlyKillstreak(streakName)) if (level.inGracePeriod && maps\mp\killstreaks\_killstreaks::deadlyKillstreak(streakName))
return; return;
ksWeap = maps\mp\killstreaks\_killstreaks::getKillstreakWeapon( streakName ); ksWeap = maps\mp\killstreaks\_killstreaks::getKillstreakWeapon( streakName );
curWeap = self GetCurrentWeapon();
if (curWeap == "none" || !isWeaponPrimary(curWeap)) if (curWeap == "none" || !isWeaponPrimary(curWeap))
curWeap = self GetLastWeapon(); curWeap = self GetLastWeapon();