Fixed sentry

This commit is contained in:
INeedBots 2020-11-11 22:29:22 -06:00
parent 1894fb9265
commit 63216772ee
2 changed files with 17 additions and 13 deletions

View File

@ -3428,21 +3428,21 @@ 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 BotStopMoving(true); self BotFreezeControls(true);
wait 1;
if (!self changeToWeapon(ksWeap)) sentryGun = maps\mp\killstreaks\_autosentry::createSentryForPlayer( "sentry_minigun", self );
{ sentryGun maps\mp\killstreaks\_autosentry::sentry_setPlaced();
self BotStopMoving(false); self notify( "sentry_placement_finished", sentryGun );
continue;
}
self thread fire_current_weapon(); self maps\mp\_matchdata::logKillstreakEvent( "sentry", self.origin );
wait 0.5;
self notify("stop_firing_weapon"); self maps\mp\killstreaks\_killstreaks::usedKillstreak( "sentry", true );
self thread changeToWeapon(curWeap); self maps\mp\killstreaks\_killstreaks::shuffleKillStreaksFILO( "sentry" );
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
wait 1;
self BotStopMoving(false); self BotFreezeControls(false);
} }
else if (streakName == "predator_missile") else if (streakName == "predator_missile")
{ {

View File

@ -32,6 +32,10 @@ test()
wait 0.05; wait 0.05;
if (self is_bot()) if (self is_bot())
continue; {
}
else
{
}
} }
} }