mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-13 07:54:50 +00:00
fix sentry again
This commit is contained in:
parent
63216772ee
commit
aab5dd1007
@ -3428,21 +3428,22 @@ bot_killstreak_think()
|
|||||||
if (DistanceSquared(self.origin, forwardTrace["position"]) < 1000*1000 && self.pers["bots"]["skill"]["base"] > 3)
|
if (DistanceSquared(self.origin, forwardTrace["position"]) < 1000*1000 && self.pers["bots"]["skill"]["base"] > 3)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
self BotFreezeControls(true);
|
self BotStopMoving(true);
|
||||||
|
|
||||||
|
if (!self changeToWeapon(ksWeap))
|
||||||
|
{
|
||||||
|
self BotStopMoving(false);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
wait 1;
|
wait 1;
|
||||||
|
self notify("place_sentry");
|
||||||
|
wait 0.05;
|
||||||
|
self notify("cancel_sentry");
|
||||||
|
|
||||||
sentryGun = maps\mp\killstreaks\_autosentry::createSentryForPlayer( "sentry_minigun", self );
|
self thread changeToWeapon(curWeap);
|
||||||
sentryGun maps\mp\killstreaks\_autosentry::sentry_setPlaced();
|
|
||||||
self notify( "sentry_placement_finished", sentryGun );
|
|
||||||
|
|
||||||
self maps\mp\_matchdata::logKillstreakEvent( "sentry", self.origin );
|
self BotStopMoving(false);
|
||||||
|
|
||||||
self maps\mp\killstreaks\_killstreaks::usedKillstreak( "sentry", true );
|
|
||||||
self maps\mp\killstreaks\_killstreaks::shuffleKillStreaksFILO( "sentry" );
|
|
||||||
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
|
|
||||||
wait 1;
|
|
||||||
|
|
||||||
self BotFreezeControls(false);
|
|
||||||
}
|
}
|
||||||
else if (streakName == "predator_missile")
|
else if (streakName == "predator_missile")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user