mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
fix emp
This commit is contained in:
parent
cea9bc89bf
commit
703ae41222
@ -3020,6 +3020,13 @@ bot_killstreak_think()
|
|||||||
wait 1;
|
wait 1;
|
||||||
self notify("bot_clear_remote_on_death");
|
self notify("bot_clear_remote_on_death");
|
||||||
|
|
||||||
|
if (self isEMPed())
|
||||||
|
{
|
||||||
|
self ClearUsingRemote();
|
||||||
|
self setSpawnWeapon(curWeap);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
self maps\mp\killstreaks\_killstreaks::usedKillstreak( "predator_missile", true );
|
self maps\mp\killstreaks\_killstreaks::usedKillstreak( "predator_missile", true );
|
||||||
self maps\mp\killstreaks\_killstreaks::shuffleKillStreaksFILO( "predator_missile" );
|
self maps\mp\killstreaks\_killstreaks::shuffleKillStreaksFILO( "predator_missile" );
|
||||||
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
|
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
|
||||||
@ -3049,6 +3056,14 @@ bot_killstreak_think()
|
|||||||
wait 1;
|
wait 1;
|
||||||
self notify("bot_clear_remote_on_death");
|
self notify("bot_clear_remote_on_death");
|
||||||
|
|
||||||
|
if (self isEMPed()) // bcuz of the wait
|
||||||
|
{
|
||||||
|
level.ac130InUse = false;
|
||||||
|
self ClearUsingRemote();
|
||||||
|
self setSpawnWeapon(curWeap);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
self maps\mp\_matchdata::logKillstreakEvent( "ac130", self.origin );
|
self maps\mp\_matchdata::logKillstreakEvent( "ac130", self.origin );
|
||||||
|
|
||||||
self.ac130LifeId = self.pers["killstreaks"][0].lifeId;
|
self.ac130LifeId = self.pers["killstreaks"][0].lifeId;
|
||||||
@ -3076,6 +3091,13 @@ bot_killstreak_think()
|
|||||||
wait 1;
|
wait 1;
|
||||||
self notify("bot_clear_remote_on_death");
|
self notify("bot_clear_remote_on_death");
|
||||||
|
|
||||||
|
if (isDefined( level.chopper ) || self isEMPed())
|
||||||
|
{
|
||||||
|
self ClearUsingRemote();
|
||||||
|
self setSpawnWeapon(curWeap);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
self thread maps\mp\killstreaks\_helicopter::startHelicopter(self.pers["killstreaks"][0].lifeId, "minigun");
|
self thread maps\mp\killstreaks\_helicopter::startHelicopter(self.pers["killstreaks"][0].lifeId, "minigun");
|
||||||
|
|
||||||
self maps\mp\killstreaks\_killstreaks::usedKillstreak( "helicopter_minigun", true );
|
self maps\mp\killstreaks\_killstreaks::usedKillstreak( "helicopter_minigun", true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user