mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
Fix bots walking around with a killstreak
This commit is contained in:
parent
d443aab063
commit
b4bade0106
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user