mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
Bots use vest ks
This commit is contained in:
parent
42802dce54
commit
d297ebc90d
@ -4602,7 +4602,33 @@ bot_killstreak_think_loop(data)
|
||||
}
|
||||
else if (streakName == "deployable_vest")
|
||||
{
|
||||
myEye = self GetEye();
|
||||
angles = self GetPlayerAngles();
|
||||
|
||||
forwardTrace = bulletTrace(myEye, myEye + AnglesToForward(angles)*128, false, self);
|
||||
|
||||
if (DistanceSquared(self.origin, forwardTrace["position"]) < 96*96 && self.pers["bots"]["skill"]["base"] > 3)
|
||||
return;
|
||||
|
||||
self BotStopMoving(true);
|
||||
self SetScriptAimPos(forwardTrace["position"]);
|
||||
|
||||
if (!self changeToWeapon(ksWeap))
|
||||
{
|
||||
self BotStopMoving(false);
|
||||
self ClearScriptAimPos();
|
||||
return;
|
||||
}
|
||||
|
||||
self thread fire_current_weapon();
|
||||
|
||||
self waittill_any_timeout( 5, "grenade_fire" );
|
||||
|
||||
self notify("stop_firing_weapon");
|
||||
|
||||
self notify("bot_check_box_think");
|
||||
self BotStopMoving(false);
|
||||
self ClearScriptAimPos();
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -4751,13 +4777,6 @@ bot_killstreak_think()
|
||||
data = spawnStruct();
|
||||
data.doFastContinue = undefined;
|
||||
|
||||
if (randomInt(2))
|
||||
self maps\mp\killstreaks\_killstreaks::giveKillstreak("ac130");
|
||||
else if (randomInt(2))
|
||||
self maps\mp\killstreaks\_killstreaks::giveKillstreak("osprey_gunner");
|
||||
else
|
||||
self maps\mp\killstreaks\_killstreaks::giveKillstreak("remote_mortar");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
self bot_killstreak_think_loop(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user