Post: Unlock All From A Carepackage*Fun To Use* [CODE]
03-06-2011, 11:54 PM #1
LINUX♥
The Best OS By Far
(adsbygoogle = window.adsbygoogle || []).push({}); Basically you get unlock all challenges from a carepackage, you can add to the code aswell to make it do other stuff but the update is coming tuesday so have your fun CFW NOOBS :evil:

ADD this:

    addCrateType( "airdrop", "challenge", getDvarInt( "scr_airdrop_challenges", 999 ), ::challengeCrateThink );

[COLOR="red"]To This part in _airdrop.GSC[/COLOR]

addCrateType( "airdrop", "ammo", getDvarInt( "scr_airdrop_ammo", 17 ), ::ammoCrateThink );
addCrateType( "airdrop", "uav", getDvarInt( "scr_airdrop_uav", 17 ), ::killstreakCrateThink );
addCrateType( "airdrop", "counter_uav", getDvarInt( "scr_airdrop_counter_uav", 15 ), ::killstreakCrateThink );
addCrateType( "airdrop", "sentry", getDvarInt( "scr_airdrop_sentry", 12 ), ::killstreakCrateThink );
addCrateType( "airdrop", "predator_missile", getDvarInt( "scr_airdrop_predator_missile", 12 ), ::killstreakCrateThink );
addCrateType( "airdrop", "precision_airstrike", getDvarInt( "scr_airdrop_precision_airstrike", 11 ),::killstreakCrateThink );
addCrateType( "airdrop", "harrier_airstrike", getDvarInt( "scr_airdrop_harrier_airstrike", 7 ), ::killstreakCrateThink );
addCrateType( "airdrop", "helicopter", getDvarInt( "scr_airdrop_helicopter", 7 ), ::killstreakCrateThink );
addCrateType( "airdrop", "helicopter_flares", getDvarInt( "scr_airdrop_helicopter_flares", 5 ), ::killstreakCrateThink );
addCrateType( "airdrop", "stealth_airstrike", getDvarInt( "scr_airdrop_stealth_airstrike", 5 ), ::killstreakCrateThink );
addCrateType( "airdrop", "helicopter_minigun", getDvarInt( "scr_airdrop_helicopter_minigun", 3 ), ::killstreakCrateThink );
addCrateType( "airdrop", "ac130", getDvarInt( "scr_airdrop_ac130", 3 ), ::killstreakCrateThink );
addCrateType( "airdrop", "emp", getDvarInt( "scr_airdrop_emp", 1 ), ::killstreakCrateThink );
addCrateType( "airdrop", "nuke", getDvarInt( "scr_airdrop_nuke", 0 ), ::killstreakCrateThink );


THEN ADD THIS ANYWHERE IN _airdrop.GSC

    challengeCrateThink( dropType )
{
self endon ( "death" );

self setHintString( "Press and hold ^3[{+activate}] ^7for all Challenges");
self makeUsable();

self thread crateOwnerCaptureThink();
self thread crateOtherCaptureThink();

for ( ;; ){
self waittill ( "captured", player );
player playLocalSound( "ammo_crate_use" );
player doChallenges();
}
}

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

chalProgress = 0;

useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}

chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( "^2" + chalPercent + " ^0percent done" );
useBar updateBar( chalPercent / 100 );

wait ( 0.04 );
}
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Everything ^0Unlocked!");
useBar destroyElem();
useBarText destroyElem();
}


CAN be optimised but CBA.............. BLACK OPS FTW!!! Outie :dingding:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to LINUX♥ for this useful post:

Boxxxxyyy, chickensamw1993, RusterG, xCristian
03-07-2011, 02:49 AM #11
SamMight69Her
CRAZY 4 INK
Originally posted by THEDUBMAN101 View Post
tbh i couldnt give 2 sh*ts what you think or anybody else thinks

ino leechers gonna be leechers.
03-07-2011, 02:51 AM #12
LINUX♥
The Best OS By Far
Originally posted by ENT View Post
ino leechers gonna be leechers.


1 last day of leecher as much as i can before its patched yes, never leeched before, this game is a pile of sh*t now
03-07-2011, 02:54 AM #13
Cody_h4x
Nobody is like me
So funny if you added a show all message saying "Whoever captures the carepackage gets EVERYTHING" than put it where you cant capture but very close to :carling:
03-07-2011, 05:04 AM #14
iNikush
I'm back from the dead
dude why the **** hasnt he been infracted for posting stolen work from another forum site if anyone from se7ens hates this site for any reason he is the reason

The following user thanked iNikush for this useful post:

TheFallen
03-07-2011, 10:51 AM #15
LINUX♥
The Best OS By Far
Originally posted by XxBlackBeard View Post
dude why the **** hasnt he been infracted for posting stolen work from another forum site if anyone from se7ens hates this site for any reason he is the reason


Maybe because my patches have been posted on there with no f*cking credits what so ever, stop crying over a game 'Backseat Mod'
03-07-2011, 12:14 PM #16
divybc
Former Staff
Ffs why are all those queers hating, Hes just posting something if you dont like it report it dont site and flame him, Otherwise hes only trying to ****ing help, Also yh the game is shit anyway.
03-07-2011, 12:27 PM #17
Janiboy
☆ janiboy95 ☆
Lol amazing idea =D
03-07-2011, 09:46 PM #18
hey i need a challenge lobby plz som1
add psn : iambirdy-
03-07-2011, 11:42 PM #19
iNikush
I'm back from the dead
Originally posted by THEDUBMAN101 View Post
Maybe because my patches have been posted on there with no f*cking credits what so ever, stop crying over a game 'Backseat Mod'


no problem i dont back seat mod i will report the post like all our smart members did not do while reading this

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo