Post: My Cod4 & Cod5 Stealth Bomber
06-09-2012, 07:08 PM #1
nay1995
The Master
(adsbygoogle = window.adsbygoogle || []).push({}); Check it out, just a little something i made Smile

Hope you enjoy.




    
stealthbomber()
{
gun=self getcurrentweapon();
self beginLocationselection("map_artillery_selector",level.artilleryDangerMaxRadius * 1.2);
self.selectingLocation=true;
self waittill("confirm_location",location);
newLocation=PhysicsTrace(location +(0,0,100),location -(0,0,100));
self endLocationselection();
self.selectingLocation=undefined;
wait 0.5;
self switchtoweapon(gun);
Location=newLocation;
wait 1;
iprintlnbold("Stealth Bomber Inbound");
wait 1.5;
locationYaw = maps\mp\gametypes\_hardpoints::getBestPlaneDirection( location );
flightPath = getFlightPath( location, locationYaw, 0 );
level thread Move( self, flightPath,location );
}

Move( owner, flightPath, location )
{
level endon( "game_ended" );
if ( !isDefined( owner ) ) return;
start = flightpath["start"];
end=flightpath["end"];
middle=location+(0,0,1500);
spinTostart= Vectortoangles(flightPath["start"] - flightPath["end"]);
spinToEnd= Vectortoangles(flightPath["end"] - flightPath["start"]);
lb = SpawnPlane( owner, "script_model", start );
lb setModel("defaultvehicle");
lb.angles=spinToend;
lb playLoopSound("veh_mig29_dist_loop");
lb endon( "death" );
wait 3;
time = calc(1500, lb.origin, middle);
lb moveto(middle, time);
lb thread planebomb(owner,location);
wait 4;
lb moveto(end, time);
wait time;
lb notify("planedone");
lb notify("endbomb");
lb delete();
}

getFlightPath(location, locationYaw, rightOffset)
{
location = location * (1, 1, 0);
initialDirection = (0, locationYaw, 0);
planeHalfDistance = 12000;
flightPath = [];
if (isDefined(rightOffset) && rightOffset != 0) location = location + (AnglesToRight(initialDirection) * rightOffset) + (0, 0, RandomInt(300));
startPoint = (location + (AnglesToForward(initialDirection) * (-1 * planeHalfDistance)));
endPoint = (location + (AnglesToForward(initialDirection) * planeHalfDistance));
flyheight = 1500;
if (isdefined(level.airstrikeHeightScale))
{
flyheight *= level.airstrikeHeightScale;
}
flightPath["start"] = startPoint + (0, 0, flyHeight);
flightPath["end"] = endPoint + (0, 0, flyHeight);
return flightPath;
}

calc(speed, origin, moveTo)
{
return (distance(origin, moveTo) / speed);
}

GetGround(bomb)
{
return bullettrace(bomb.origin, bomb.origin - (0, 0, 1490), false, self)["position"];
}

planebomb(owner)
{
self endon("death");
self endon("disconnect");
self endon("endbomb");
wait 0.05;
for(;Winky Winky
{
bomb = spawn("script_model", self.origin - (0, 0, 80));
bomb setModel("aircraft_bomb");
bomb.angles = self.angles;
bomb.KillCamEnt = bomb;
thread del(bomb);
tt = GetGround(bomb);
wait 0.01;
bomb moveto(tt, 1);
bomb playsound("artillery_impact");
playRumbleOnPosition("artillery_rumble", self.origin);
earthquake(2, 2, self.origin, 2500);
thread bombact(bomb,owner);
wait .2;
}
}
del(p)
{
wait 9;
p delete();
}
bombact(bomb,owner)
{
wait 1;
Playfx(level.defboom, bomb.origin);
Playfx(level.expbullt, bomb.origin);
Playfx(level.bfx, bomb.origin);
wait 0.5;
RadiusDamage(bomb.origin, 200, 200, 200, owner, "MOD_PROJECTILE_SPLASH", "artillery_mp");
}



Credits:
- Daft_Vader
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked nay1995 for this useful post:

Jango

The following user groaned nay1995 for this awful post:

Taylor
06-09-2012, 08:58 PM #2
Jango
I love my kitteh
Originally posted by nay View Post
Check it out, just a little something i made Smile

Hope you enjoy.



I am guessing this will be put in your new patch? Smile

Edit: nevermind it is in your video lol
06-09-2012, 10:48 PM #3
nay1995
The Master
Originally posted by Jango View Post
I am guessing this will be put in your new patch? Smile

Edit: nevermind it is in your video lol


lol -------------------------------------
06-15-2012, 07:49 AM #4
Nice man what was that text (iPrintln) saying

The following user groaned TheUnexpected for this awful post:

Ghost1990
06-15-2012, 02:58 PM #5
xKtF
In my man cave
Originally posted by The
Nice man what was that text (iPrintln) saying


It say's stealth bomber inbound
06-15-2012, 04:47 PM #6
Originally posted by INFINITYCL
It say's stealth bomber inbound


No your talking about the one in the center of the screen (iPrintlnBold) I'm talking about the one in the bottom left (iPrintln)
06-18-2012, 01:24 AM #7
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by The
No your talking about the one in the center of the screen (iPrintlnBold) I'm talking about the one in the bottom left (iPrintln)


the coordinates of where he is looking at
06-18-2012, 01:29 AM #8
Originally posted by D34TH View Post
the coordinates of where he is looking at


That's what I was thinking but I wasn't sure. Thanks
06-18-2012, 01:46 AM #9
Sweet dude, never thought you can have a stealth bomber in those games.

The following user groaned TonyTheRoyal_ for this awful post:

Alexis Rhodes
06-18-2012, 11:31 AM #10
LYFN
Banned
nice patch, im not sure you have enough on your desktop :carling:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo