Fix bots walking around with a killstreak

This commit is contained in:
ineedbots 2021-06-13 21:15:56 -06:00
parent dd338ab565
commit a68410a800

View File

@ -4416,6 +4416,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");
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 = []; useableStreaks = [];
if (!isDefined(data.doFastContinue)) if (!isDefined(data.doFastContinue))
@ -4448,7 +4463,6 @@ bot_killstreak_think_loop(data)
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();