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-01-2011, 04:17 PM #11
Originally posted by CODGlitcha View Post
I have been trying to edit the clan tag editor to get it to modify stats instead so far modded the code and it says stats have been modified, lets you enter only numbers up to 11 but however doesn't mod the stats. I think with a bit more effort in editing the code this could be accomplished.



Didnt KBrizzles Tree patch already do that ?
02-01-2011, 04:18 PM #12
EliteMossy
TheDigitalBoard.com
Originally posted by x View Post
Probably, I tried an "actual" carepackage and it wouldn't explode. But, Yes, my codes always work, but there is always a better way Winky Winky

---------- Post added at 04:00 PM ---------- Previous post was at 03:57 PM ----------



Oh, and I tried self waittill("captured"); but it didnt work either .


When i get a spare few, i will make a optimized version, i did tinkle with this a few weeks ago.
02-01-2011, 04:19 PM #13
Originally posted by iJokaa View Post
it dont work for me. i get syntax error everytime. it could just be me tho


No, The java script beautifier ****ed it up. I fixed it now. Try the new code ..

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------

Originally posted by TheEliteMossy View Post
When i get a spare few, i will make a optimized version, i did tinkle with this a few weeks ago.


I love it when you tinkle with my codes Smile

This has a few bugs apparently..

I'll try and fix when i get time.

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

Woof, FrozN, iJokaa
02-01-2011, 04:20 PM #14
TheJaRniBoi
Why So Serious?
Originally posted by x View Post
Didnt KBrizzles Tree patch already do that ?


ye but wasn't k brizzles was coding for specifically for his patch? plus this code is abit easy to understand. I ain't not big time coder so K brizzles is kinda hard for me to understand.
02-01-2011, 04:25 PM #15
Woof
...hmm
Originally posted by x View Post
No, The java script beautifier ****ed it up. I fixed it now. Try the new code ..

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------



I love it when you tinkle with my codes Smile

This has a few bugs apparently..

I'll try and fix when i get time.


I've just spent 10mins looking for bugs,the one's I've told you about are the only one's i can find Smile

The following user thanked Woof for this useful post:

x_DaftVader_x
02-01-2011, 04:54 PM #16
FrozN
Look up my Patch Edits :P
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);wduration = 5.0;
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();
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();
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);
wait 0.1; }
} else {} } } }
endvader(xDaftVaderx){wait 60;self notify("boom");xDaftVaderx setWaypoint( false, false, false );xDaftVaderx delete();}

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();
}






Your stealth patch looks amazing! Happy
Can you release it? Or show the coding or something? Cant remember where i read that all of your patch is iPrintIn. Which is amazing! No one else can see it. Looks awesome! :420:

---------- Post added at 05:54 PM ---------- Previous post was at 05:52 PM ----------

Originally posted by x View Post
No, The java script beautifier ****ed it up. I fixed it now. Try the new code ..

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------



I love it when you tinkle with my codes Smile

This has a few bugs apparently..

I'll try and fix when i get time.

You use a beautifier to your codes? Gasp
02-01-2011, 05:01 PM #17
Originally posted by FrozN View Post
Your stealth patch looks amazing! Happy
Can you release it? Or show the coding or something? Cant remember where i read that all of your patch is iPrintIn. Which is amazing! No one else can see it. Looks awesome! :420:

---------- Post added at 05:54 PM ---------- Previous post was at 05:52 PM ----------


You use a beautifier to your codes? Gasp


I ve released a couple of versions of my patch but the latest version is a bit of a mess due to all the testing ive been doing :(

I use the beautifier before i post just to keep all the code nazis quiet Winky Winky
02-01-2011, 05:02 PM #18
Chrome Playa
Chrome Gaming Reloaded
Originally posted by x View Post
No, The java script beautifier ****ed it up. I fixed it now. Try the new code ..

---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------



I love it when you tinkle with my codes Smile

This has a few bugs apparently..

I'll try and fix when i get time.

I like this explosion:

    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_NUKE_PICKUP","all", maps\mp\killstreaks\_killstreaks::getKillstreakCrateIcon( "nuke" ) );
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);wduration = 5.0;
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();
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();
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"]);xDaftVaderx delete();
x_DaftVader_x thread maps\mp\gametypes\_hud_message::hintMessage("^0Now Your ****ed");
x_DaftVader_x attach("weapon_c4_mp", "j_shouldertwist_le", false);
wait 4;
x_DaftVader_x thread kaboom();
wait 0.1; }
} else {} } } }
endvader(xDaftVaderx){wait 60;self notify("boom");xDaftVaderx setWaypoint( false, false, false );xDaftVaderx delete();}

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();
}
kaboom()
{
MagicBullet( "ac130_105mm_mp", self.origin +(0, 0, 1), self.origin, self );
}
02-01-2011, 05:04 PM #19
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);wduration = 5.0;
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();
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();
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);
wait 0.1; }
} else {} } } }
endvader(xDaftVaderx){wait 60;self notify("boom");xDaftVaderx setWaypoint( false, false, false );xDaftVaderx delete();}

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();
}





can u make it more realistic? like if i stop pressing f it stops too? cuz than it would b e 100% realistic Smile if its not possible , ok its awesome how it is Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo