Post: [Code] **Exploding CarePackage (Pro Version !)**
02-01-2011, 02:32 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); ..........
(adsbygoogle = window.adsbygoogle || []).push({});

The following 35 users say thank you to x_DaftVader_x for this useful post:

Woof, A_Shifter99, ainajp, Alfa, Amanda, Blackstorm, cadpimp1289, Chrome Playa, CleanMODSHD, Correy, d7w7z, danielsarpa, DEREKTROTTER, dogyplop, DR-Dizzy, Dreamcather, FourzerotwoFAILS, FrozN, Ghost1990, Hx1, iJokaa, jkry_2_1_, kmax102, legitmod, louisthemaster, manster, maxrox, RaverBoy, SALOOTME, Scrumilation, silsil, Skyl1n3, TheJaRniBoi, ViiZiiKz
02-02-2011, 06:28 AM #56
N3G6
SE Pro
Originally posted by iJokaa View Post
it dont work for me. i get syntax error everytime. it could just be me tho

Your Not alone:whistle:
02-02-2011, 12:13 PM #57
Thanks for all the hard work you are doing for us, the community. Keep it up bro!
02-02-2011, 12:14 PM #58
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by NaTo154 View Post
Your Not alone:whistle:


it works now. you must of copied it wrong or something
02-02-2011, 07:22 PM #59
Xanadu
Banned
Originally posted by x View Post
Ok, BadMan beat me to this with his simple version, but I had been working on this already.

This version does everything a normal airdrop does ie: Splash notifies, calls out to other team, shows on minimap etc..

And well, you can guess the rest Smile

As you can see from the code, it wasn't a five minute job so don't take out the credits!!

You must login or register to view this content.



Just put this in your menu:

    
self thread DaftDrop();


Then add all of this:

    
x_DaftVader_x(lb){/*created by x_DaftVader_x*/
self endon("boom");


xDaftVaderx=maps\mp\killstreaks\_airdrop::createAirDropCrate( self, "ammo", "airdrop", lb.origin );
xDaftVaderx.angles = lb.angles;
xDaftVaderx PhysicsLaunchServer((0, 0, 0), anglestoforward(lb.angles) * 1);
self thread endvader(xDaftVaderx);
wait 5;


newPos=xDaftVaderx getorigin();
xDaftVaderx maps\mp\killstreaks\_airdrop::crateSetupForUse( &"MP_AC130_PICKUP","all", maps\mp\killstreaks\_killstreaks::getKillstreakCrateIcon( "ac130" ) );
xDaftVaderx setWaypoint( true, true, false );

wait 1;

for(;Winky Winky {
foreach(x_DaftVader_x in level.players) {


wait 0.01;
Homer=distance(newPos,x_DaftVader_x.origin);
if(Homer<50) {

if(x_DaftVader_x UseButtonPressed())wait 0.1;
if(x_DaftVader_x UseButtonPressed()) {
xDaftVaderx setWaypoint( false, false, false );
RW="";
x_DaftVader_x playerLinkTo(xDaftVaderx );
x_DaftVader_x playerLinkedOffsetEnable();

x_DaftVader_x _disableWeapon();
self thread VaderBar();
wait 6;
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], xDaftVaderx.origin);
x_DaftVader_x playSound(level.heli_sound[self.team]["crash"]);
RadiusDamage(newPos, 150, 150, 1500, x_DaftVader_x);xDaftVaderx delete();
earthquake(0.3, 1, x_DaftVader_x.origin, 1000);self notify("boom");
wait 0.1; }
} else {} } } }
endvader(xDaftVaderx){wait 60;self notify("boom");xDaftVaderx setWaypoint( false, false, false );xDaftVaderx delete();}

VaderBar(){wduration = 5.0;
xDaftVader = createPrimaryProgressBar( 25 );
xDaftVaderText = createPrimaryProgressBarText( 25 );
xDaftVaderText setText( &"MP_CAPTURING_CRATE" );
xDaftVader updateBar( 0, 1 / wduration );

for ( waitedTime = 0; waitedTime < wduration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );
xDaftVader destroyElem();
xDaftVaderText destroyElem();}



DaftDrop() {/*Created By x_DaftVader_x*/
self endon("death");
self endon("disconnect");
streakName="airdrop";
team = self.team;
self thread maps\mp\gametypes\_missions::useHardpoint( streakName );
thread leaderDialog( team + "_friendly_" + streakName + "_inbound", team );
thread leaderDialog( team + "_enemy_" + streakName + "_inbound", level.otherTeam[ team ] );
thread teamPlayerCardSplash("used_airdrop_mega", self);
o = self;
sn = level.heli_start_nodes[randomInt(level.heli_start_nodes.size)];
hO = sn.origin;
hA = sn.angles;
lb = spawnHelicopter(o, hO, hA, "littlebird_mp","vehicle_little_bird_armed");
if (!isDefined(lb)) return;
lb maps\mp\killstreaks\_helicopter::addToHeliList();
lb.zOffset = (0, 0, lb getTagOrigin("tag_origin")[2] - lb getTagOrigin("tag_ground")[2]);
lb.team = o.team;
lb.attacker = undefined;
lb.lifeId = 0;
lb.currentstate = "ok";
lN = level.heli_loop_nodes[randomInt(level.heli_loop_nodes.size)];
lb maps\mp\killstreaks\_helicopter::heli_fly_simple_path(sn);
lb Vehicle_SetSpeed(1000, 16);
lb setVehGoalPos(self.origin + (351, 0, 800), 1);
wait 5;
self thread x_DaftVader_x(lb);
lb thread lbleve(2);
}

lbleve(T) {
self endon("death");
self endon("helicopter_done");
maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause(T);
self thread lbleave();
}
lbleave() {
self notify("leaving");
lN = level.heli_leave_nodes[randomInt(level.heli_leave_nodes.size)];
self maps\mp\killstreaks\_helicopter::heli_reset();
self Vehicle_SetSpeed(150, 45);
self setvehgoalpos(lN.origin, 1);
self waittillmatch("goal");
self notify("death");
wait .05;
self delete();
}






haha thats beast
02-02-2011, 08:47 PM #60
N3G6
SE Pro
Originally posted by iJokaa View Post
it works now. you must of copied it wrong or something


i get the error x_DaftVader_x is already defined
02-02-2011, 09:18 PM #61
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by NaTo154 View Post
i get the error x_DaftVader_x is already defined


yea. thats something you must of done
02-02-2011, 10:20 PM #62
Originally posted by NaTo154 View Post
i get the error x_DaftVader_x is already defined


does it say "function x_DaftVader_x" already defined? Or have you tried to change something?
02-02-2011, 10:32 PM #63
N3G6
SE Pro
Originally posted by x View Post
does it say "function x_DaftVader_x" already defined? Or have you tried to change something?


yes it says that, I also have your weapon box code and custom sights code in the same gsc if it has to do anything with the error.
02-02-2011, 10:56 PM #64
Amanda
Can’t trickshot me!
I tried the Pro Version but I think there is still the issue with the progress bar. I see the it, not the person who captures the package.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo