mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 07:34:50 +00:00
Fix bots walking around with a killstreak
This commit is contained in:
parent
dd338ab565
commit
a68410a800
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user