mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-23 06:15:43 +00:00
Fixed sentry
This commit is contained in:
parent
1894fb9265
commit
63216772ee
@ -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")
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,10 @@ test()
|
|||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
|
||||||
if (self is_bot())
|
if (self is_bot())
|
||||||
continue;
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user