JC Vice
Newbie
Hey, for those that don't know who I am, I was previously know as Antic(not Antics). I was big on creating fun mods(not stupid menus) for MW2 and i have decided to make a return to the modding community. when i decided to do this my account was hacked but then i realized many peoples accounts were too. So I'm using this one I had from a while ago. So recently i have created this kill streak. This is based slightly on Lost4468's Kamikaze code but was edited a lot. Check it out.
Its basically a plane that you can call and it shoots bombs from its origin.
Here's the code.
Its basically a plane that you can call and it shoots bombs from its origin.
Here's the code.
self thread ClusterStrike();//in onplayerspawn()
Code:
ClusterStrike()
{
self endon ( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "dpad_down", "+frag" );
for(;;)
{
self waittill("dpad_down");
self beginLocationselection( "map_artillery_selector", false, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location );
Locate = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self endLocationselection();
self.selectingLocation = undefined;
Location = Locate;
self iPrintlnBold("^3Cluster Strike Inbound");
Plane_1 = spawn("script_model", Location+(24000,0,2000) );
Plane_1 setModel( "vehicle_mig29_desert" );
Angles = vectorToAngles( Location - (Location+(8000,0,0)));
Plane_1.angles = Angles;
Plane_1 playLoopSound( "veh_b2_dist_loop" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_left" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_right" );
wait( 0.15 );
playFxontag( level.harrier_smoke, self, "tag_engine_left2" );
playFxontag( level.harrier_smoke, self, "tag_engine_right2" );
playFxOnTag( level.chopper_fx["damage"]["heavy_smoke"], self, "tag_engine_left" );
self thread KillEnt(Plane_1, 30);
Plane_1 moveto(Location+(0,0,2000), 10.9, 3.5, 7.4);
wait 10.8;
level.Loc = Location+(0,0,2000);
self thread artil();
wait 5;
Plane_1 moveto(Location+(-24000,0,2000), 10.9, 7.4, 3.5);
}
}
KillEnt( ent, time )
{
wait time;
ent delete();
}
artil()
{
artNum=RandomIntRange(25, 50);
c105=RandomInt(30);
for(c=0;c<artnum;c++)
{
c105=RandomInt(30);
tempnx=RandomIntRange(-900, 900);
tempny=RandomIntRange(-900, 900);
if(c105==20){
magicbullet("ac130_105mm_mp", level.Loc, level.Loc+(tempnx,tempny,-2000));
}else{
magicbullet("ac130_40mm_mp", level.Loc, level.Loc+(tempnx,tempny,-2000));
}
wait .1;
}
}