Make killstreaks fire at models.

Posts 1–15 of 15 · Page 1 of 1
Make killstreaks fire at models.
In No Hope: AI Zombies the zombies are reffered as models, so helicopters and pave lows dont attack it. Does anyone know how to let killstreaks attack models?
in cod4 mod- Alpha xl15 if file mod.ff file helicopter.gsc, targeting metod, but im tried this, hm
Unknown Func
2 Weeks Ago

Lol i've already thrown away the mod cuz it was impossible to let those fucking helicopters fire at them.
work!!! in file copter.gsc, targets!
players = level.players
change to
for( h = 0; h < level.BotsForWave; h++ )
{
players = level.bots[h];
}

my metod =)
Quote Originally Posted by YuDi21 View Post
work!!! in file copter.gsc, targets!
players = level.players
change to
for( h = 0; h < level.BotsForWave; h++ )
{
players = level.bots[h];
}

my metod =)
OMFG, JUST WHEN I DELETED THE FUCKING MOD OHH IM SO FUCKING PISSED RIGHT NOW>>>!!!!! RIIIGHHTTT NOOOOOWWWWWWWWWW


EDIT: Wait it doesn't work -.-;
It could work. That's what I thought you could do when I first saw this thread but it was old so

Inside _helicopter.gsc line 596, replace with this:
Code:
        foreach ( player in level.BotsForWave )
        {
                if ( !isDefined ( player ) )
                        continue;

                if ( !isDefined ( player.crate1.health ) )
                        continue;

                if ( player.crate1.health <= 0 )
                        continue;

                if ( !bulletTracePassed( player.origin, player.origin + (0,0,2048), false, player ) )
                        continue;
                       
                player.remoteHeliDist = 0;
                validEnemies[validEnemies.size] = player;              
        }
Imma try it, thx.

EDIT: Nope it doesn't work
Maybe it has to be something with the targetting algorithim or the isAlive function? Sorry i'm not a pro coder.

EDIT:

Script currently looks like this
http://pastebin.com/0QHiQEVH
Ugh, just realised that, _helicopter.gsc was for chopper gunner.
Go back to _copter.gsc at line 170 and replace with this:
Code:
		if (self.team != "neutral") {
			for (i = 0; i < level.BotsForWave.size; i++) {
				if (isDefined(level.BotsForWave[i]) && isDefined(level.BotsForWave[i].crate1.health) && level.BotsForWave[i].health > 0) {
					playerorigin = level.BotsForWave[i].origin;
					playerorigin = (playerorigin[0], playerorigin[1], self.areaEnt.origin[2]);
					if (distance(playerorigin, self.areaEnt.origin) < self.areaEnt.radius)
						enemyTargets[enemyTargets.size] = level.BotsForWave[i];
				}
			}
		}
Do the same for line 280.
Quote Originally Posted by master131 View Post
Ugh, just realised that this was for chopper gunner.
LOL. So you figured something out?

Nope, still not working >

Tried putting _copter.gsc in maps/mp/killstreaks & maps/mp/gametypes
but it still doesn't work. (i deleted _helicopter.gsc)

_copter.gsc:
init() { level.coptermodel = "vehicle_cobra_hel

Sorry for bothering you so much
Well I tried my best and can't seem to find another way to do this.... Sorry I couldn't help.
Quote Originally Posted by master131 View Post
Well I tried my best and can't seem to find another way to do this.... Sorry I couldn't help.

Well thanks for everyone's effort, well apperciated. /request close
@Schucker Next time use the edit button.
/Posts merged.
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us