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-06-2011, 11:56 PM #2
wowaka
Former Staff
this seems very stable No
03-07-2011, 12:00 AM #3
LINUX♥
The Best OS By Far
Originally posted by julianportman View Post
this seems very stable No


JUST CHANGE THE Player doChallenges to where the unlock all code is in the patch..... Like i said..... update tuesday ... I CBA :dingding:
03-07-2011, 12:10 AM #4
Originally posted by THEDUBMAN101 View Post
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:



Nice code, but wrap it in codes bro :y:

The following user thanked JOT for this useful post:

LINUX♥
03-07-2011, 12:14 AM #5
LINUX♥
The Best OS By Far
Originally posted by Jot1011 View Post
Nice code, but wrap it in codes bro :y:


Done Outie
03-07-2011, 02:14 AM #6
THIS GUY IS STEALING FROM 7s GO CHECK MW@ MODDING THERE ALL OF HIS THREADS COME FROM THERE WITH NO CREDIT

The following user thanked daboss 329 for this useful post:

TheFallen
03-07-2011, 02:34 AM #7
SamMight69Her
CRAZY 4 INK
trying to get rep by stealing with no credits and this shits already posted.

The following user thanked SamMight69Her for this useful post:

TheFallen
03-07-2011, 02:43 AM #8
LINUX♥
The Best OS By Far
Originally posted by daboss
THIS GUY IS STEALING FROM 7s GO CHECK MW@ MODDING THERE ALL OF HIS THREADS COME FROM THERE WITH NO CREDIT


and your point is? i did it because its patched tuesday, get over it your cfw low rep noob

---------- Post added at 02:43 AM ---------- Previous post was at 02:42 AM ----------

Originally posted by ENT View Post
trying to get rep by stealing with no credits and this shits already posted.


i didnt ask for credit dumbass
03-07-2011, 02:47 AM #9
SamMight69Her
CRAZY 4 INK
Originally posted by THEDUBMAN101 View Post
and your point is? i did it because its patched tuesday, get over it your cfw low rep noob

---------- Post added at 02:43 AM ---------- Previous post was at 02:42 AM ----------



i didnt ask for credit dumbass


you ****ing dumbass this shits posted you leeched it and didnt give cretit to the guy who created it. no one said your retarded ass ask for credit.

The following 2 users say thank you to SamMight69Her for this useful post:

The Rangers, TheFallen
03-07-2011, 02:48 AM #10
LINUX♥
The Best OS By Far
Originally posted by ENT View Post
you ****ing dumbass this shits posted you leeched it and didnt give cretit to the guy who created it. no one said your retarded ass ask for credit.


tbh i couldnt give 2 sh*ts what you think or anybody else thinks

The following user thanked LINUX♥ for this useful post:

ericsklarski

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo