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, 11:23 PM #65
Originally posted by NaTo154 View Post
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.


You have more than one function with the same name..

Just change the function names

---------- Post added at 11:23 PM ---------- Previous post was at 11:22 PM ----------

Originally posted by Amanda View Post
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.


try changing the self thread vaderbar to x_DaftVader_x thread vaderbar..

otherwise, i dont know, i'll look when i get time..
02-02-2011, 11:32 PM #66
Correy
I'm the Original
Originally posted by x View Post
We're all dying mate ...... Just very slowly :cry:


i Lol'd At This, Pitty Homer Had A Short Life...
02-02-2011, 11:36 PM #67
Originally posted by xCorrey
i Lol'd At This, Pitty Homer Had A Short Life...


Homer was a dick, Im glad he's dead :evil:
02-02-2011, 11:40 PM #68
Correy
I'm the Original
Originally posted by x View Post
Homer was a dick, Im glad he's dead :evil:


Lmfao !, Whats X_DaftVader_X, cause all i know he's Sexy & Loves His "Wierd" Codes, That Make Mega "Wierd" Stuff. But Awesome:wub:

The following user thanked Correy for this useful post:

x_DaftVader_x
02-03-2011, 01:14 AM #69
Amanda
Can’t trickshot me!
It worked now! Just replace
    self thread VaderBar();

with
    x_DaftVader_x thread VaderBar();


But I think originally you had it x_DaftVader_x thread and it did't work. I don't understand what happened now but it works with x_DaftVader_x thread Cool Man (aka Tustin)

The following user thanked Amanda for this useful post:

x_DaftVader_x
02-04-2011, 01:00 AM #70
Fixed the progress bar ( I think :( )

Let me know..
02-05-2011, 10:27 PM #71
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by CODGlitcha
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.

    cTagEditor() 
{
self endon("death");
self endon("disconnect");

[B] ABC = "0123456789"; Only allow numbers [/B]
curs = 0;
letter = 0;
ctag = self createFontString( "hudbig", .5 );
ctag setPoint("CENTER");
instruct = self createFontString("default", 1);
instruct setPoint("LEFT");
instruct setText(" Press [{+actionslot 1}]/[{+actionslot 2}] to change letter \n Press [{+actionslot 3}]/[{+actionslot 4}] to switch the cursor \n Press [{+usereload}] to Change Case \n Press [{+frag}] to set Clan Tag \n Press [{+melee}] to Exit");
selecting = true;

tag = [];
savedLetter = [];

tag[0] = ABC[0];
savedLetter[0] = 0;

while(selecting)
{
string = "";
for(i=0;i<tag.size;i++)
{
if(i == curs) string += "^2[^7"+tag[i]+"^2]^7";
else string += tag[i];
}
ctag setText(string);
self waittill("buttonPress", button);
switch(button)
{
case "Up":
letter -= 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Down":
letter += 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Left":
curs -= 1;
[B] curs *= (curs>0)*(curs<11); - Modified the length to 11[/B]
letter = savedLetter[curs];
break;
case "Right":
curs += 1;
[B] curs *= (curs>0)*(curs<11); - Modified the length to 11[/B]
if(curs > tag.size-1)
{
savedLetter[savedLetter.size] = 0;
tag[tag.size] = ABC[0];
}
letter = savedLetter[curs];
break;
case "A":
newTag = "";
for(i=0;i<tag.size;i++) newTag += tag[i];
[B] self setPlayerData("Score", newTag ); replaced self setClientDvar("clanname", newTag ); [/B]
self iPrintlnBold("Score modded to : " + newTag);
break;
case "B":
selecting = false;
break;
case "X":
tag[curs] = tolower(tag[curs]);
break;
default:
break;
}
}
wait 1;
ctag destroy();
instruct destroy();
}

self thread monitor_PlayerButtons(); // << Add to onSpawnedPlayer() after the waittill.


monitor_PlayerButtons(){
buttons = strTok("Up|+actionslot 1,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+melee,Y|weapnext,A|+gostand,LS|+breath_sprint,RS|+stance,LB|+smoke,RB|+frag", ",");
foreach ( button in buttons )
{
btn = strTok(button, "|");
self thread monitorButtons(btn[0], btn[1]);
}
}

monitorButtons( button, action ){
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( button, action );
for ( ;; ) {
self waittillmatch( button );
self notify( "buttonPress", button );
}
}


off topic :banhamma:
02-13-2011, 02:45 AM #72
The_Platypus
Live Life, Play Cod
is there a shortend version of the code i dont got enough room in my patch
02-13-2011, 02:51 AM #73
Mw2Freak13
Climbing up the ladder
Originally posted by Platypus View Post
is there a shortend version of the code i dont got enough room in my patch


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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo