mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
Fixed scr_errors
This commit is contained in:
parent
5a1663519d
commit
6e283a1ccc
@ -3680,10 +3680,16 @@ clear_remote_on_death(isac130)
|
|||||||
*/
|
*/
|
||||||
isAnyEnemyPlanes()
|
isAnyEnemyPlanes()
|
||||||
{
|
{
|
||||||
|
if (!isDefined(level.harriers))
|
||||||
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < level.harriers.size; i++)
|
for (i = 0; i < level.harriers.size; i++)
|
||||||
{
|
{
|
||||||
plane = level.harriers[i];
|
plane = level.harriers[i];
|
||||||
|
|
||||||
|
if (!isDefined(plane))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (level.teamBased && plane.team == self.team)
|
if (level.teamBased && plane.team == self.team)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -3745,6 +3751,13 @@ bot_killstreak_think()
|
|||||||
ksWeap = maps\mp\killstreaks\_killstreaks::getKillstreakWeapon( streakName );
|
ksWeap = maps\mp\killstreaks\_killstreaks::getKillstreakWeapon( streakName );
|
||||||
curWeap = self GetCurrentWeapon();
|
curWeap = self GetCurrentWeapon();
|
||||||
|
|
||||||
|
if (curWeap == "none")
|
||||||
|
curWeap = self GetLastWeapon();
|
||||||
|
|
||||||
|
lifeId = self.pers["killstreaks"][0].lifeId;
|
||||||
|
if (!isDefined(lifeId))
|
||||||
|
lifeId = -1;
|
||||||
|
|
||||||
if (isStrStart(streakName, "helicopter_") && self isAnyEnemyPlanes() && self.pers["bots"]["skill"]["base"] > 3)
|
if (isStrStart(streakName, "helicopter_") && self isAnyEnemyPlanes() && self.pers["bots"]["skill"]["base"] > 3)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -3753,7 +3766,7 @@ bot_killstreak_think()
|
|||||||
if (self inLastStand())
|
if (self inLastStand())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (self.pers["killstreaks"][0].lifeId == self.pers["deaths"] && !self HasScriptGoal() && !self.bot_lock_goal && streakName != "sentry" && !self nearAnyOfWaypoints(128, level.waypointsCamp))
|
if (lifeId == self.deaths && !self HasScriptGoal() && !self.bot_lock_goal && streakName != "sentry" && !self nearAnyOfWaypoints(128, level.waypointsCamp))
|
||||||
{
|
{
|
||||||
campSpots = [];
|
campSpots = [];
|
||||||
distSq = 1024*1024;
|
distSq = 1024*1024;
|
||||||
@ -3846,7 +3859,7 @@ bot_killstreak_think()
|
|||||||
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
|
self maps\mp\killstreaks\_killstreaks::giveOwnedKillstreakItem();
|
||||||
|
|
||||||
rocket = MagicBullet( "remotemissile_projectile_mp", self.origin + (0.0,0.0,7000.0 - (self.pers["bots"]["skill"]["base"] * 400)), location, self );
|
rocket = MagicBullet( "remotemissile_projectile_mp", self.origin + (0.0,0.0,7000.0 - (self.pers["bots"]["skill"]["base"] * 400)), location, self );
|
||||||
rocket.lifeId = self.pers["killstreaks"][0].lifeId;
|
rocket.lifeId = lifeId;
|
||||||
rocket.type = "remote";
|
rocket.type = "remote";
|
||||||
|
|
||||||
rocket thread maps\mp\gametypes\_weapons::AddMissileToSightTraces( self.pers["team"] );
|
rocket thread maps\mp\gametypes\_weapons::AddMissileToSightTraces( self.pers["team"] );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user