Post: Hack Idea...
12-25-2010, 03:17 PM #1
Albanian'
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Well i saw in the patch the statset numbers that works in the MP and CM file then i went abit throught the patch and found these.

    			player setClientDvar( "player_unlockweapon0", "" );
player setClientDvar( "player_unlockweapon1", "" );
player setClientDvar( "player_unlockweapon2", "" );
player setClientDvar( "player_unlockweapons", "0" );

player setClientDvar( "player_unlockcamo0a", "" );
player setClientDvar( "player_unlockcamo0b", "" );
player setClientDvar( "player_unlockcamo1a", "" );
player setClientDvar( "player_unlockcamo1b", "" );
player setClientDvar( "player_unlockcamo2a", "" );
player setClientDvar( "player_unlockcamo2b", "" );
player setClientDvar( "player_unlockcamos", "0" );

player setClientDvar( "player_unlockattachment0a", "" );
player setClientDvar( "player_unlockattachment0b", "" );
player setClientDvar( "player_unlockattachment1a", "" );
player setClientDvar( "player_unlockattachment1b", "" );
player setClientDvar( "player_unlockattachment2a", "" );
player setClientDvar( "player_unlockattachment2b", "" );
player setClientDvar( "player_unlockattachments", "0" );

player setClientDvar( "player_unlockperk0", "" );
player setClientDvar( "player_unlockperk1", "" );
player setClientDvar( "player_unlockperk2", "" );
player setClientDvar( "player_unlockperks", "0" );

player setClientDvar( "player_unlockfeature0", "" );
player setClientDvar( "player_unlockfeature1", "" );
player setClientDvar( "player_unlockfeature2", "" );
player setClientDvar( "player_unlockfeatures", "0" );

player setClientDvar( "player_unlockchallenge0", "" );
player setClientDvar( "player_unlockchallenge1", "" );
player setClientDvar( "player_unlockchallenge2", "" );
player setClientDvar( "player_unlockchallenges", "0" );



i thought we could try and use them like this :

bind Button blabla "player_unlockfeatures "1" or whatever..
maybe someone who know better how to code can try this ?

NOTE: THIS IS JUST AN IDEA DONT FLAME IF IT DOESNT WORK
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Albanian' for this useful post:

Adamâ„¢
12-25-2010, 06:37 PM #11
Tupac17
I ♥ COD4
Originally posted by Karoolus View Post
this is similar (if not identical) in W@W
the thing is, when you unlock an attachment (LEGIT) the game sets a clientdvar with the value for the attachment to unlock.. then when the match ends, it'll look for every defined dvar with a planned unlock..

so yeah, you could use this to unlock all attachments Smile
all you'd have to find are the names

i wrote this real quick, will test as soon as i can (will be a while cause i'm making great progress on WAW Happy)
    UnlockAll()
{
for(i= self.pers["rank"]; i = 55; i++)
{
unlockedWeapon = self getRankInfoUnlockWeapon( i );
if ( isDefined( unlockedWeapon ) && unlockedWeapon != "" )
unlockWeapon( unlockedWeapon );

unlockedPerk = self getRankInfoUnlockPerk( i );
if ( isDefined( unlockedPerk ) && unlockedPerk != "" )
unlockPerk( unlockedPerk );

unlockedChallenge = self getRankInfoUnlockChallenge( i );
if ( isDefined( unlockedChallenge ) && unlockedChallenge != "" )
unlockChallenge( unlockedChallenge );

unlockedAttachment = self getRankInfoUnlockAttachment( i );
if ( isDefined( unlockedAttachment ) && unlockedAttachment != "" )
unlockAttachment( unlockedAttachment );

unlockedCamo = self getRankInfoUnlockCamo( i );
if ( isDefined( unlockedCamo ) && unlockedCamo != "" )
unlockCamo( unlockedCamo );

unlockedFeature = self getRankInfoUnlockFeature( checkId );
if ( isDefined( unlockedFeature ) && unlockedFeature != "" )
unlockFeature( unlockedFeature );
}
}
this is part of the rank.gsc in waw, but i modified it a little..

what it normally does is this:

it's gonna start @ rank 1 & unlock all weapons/attach/....
once rank 1 is finished, it'll go to rank 2 etc...

it's gonna repeat this loop until it reaches your current rank, which will end the loop..
i made it continue from rank 1 to rank 55, so it SHOULD unlock everything at once Smile

NOT SURE THOUGH !
maby try something with these
        self maps\mp\gametypes\_rank::unlockCamo( "dragunov camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "ak47 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "uzi camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m60e4 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m1014 camo_gold" );
12-25-2010, 06:37 PM #12
yeah i just did bind button_back "player_unlockAttachment 0 ???? 1"


It will unlock silencers for all guns!!!

but still way to long

and figure the code for yourself!!! cause idk lol
12-25-2010, 07:01 PM #13
Albanian'
Are you high?
Originally posted by Sn1PaXx View Post
yeah i just did bind button_back "player_unlockAttachment 0 ???? 1"


It will unlock silencers for all guns!!!

but still way to long

and figure the code for yourself!!! cause idk lol


what r u sayin? the code bind button_back "player_unlockAttachment 0 ???? 1 did unlock all sinlencer for you?

and why the ??? xd ?
12-25-2010, 07:29 PM #14
Karoolus
I'm the W@W Menu Guy !
Originally posted by Tupac17 View Post
maby try something with these
        self maps\mp\gametypes\_rank::unlockCamo( "dragunov camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "ak47 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "uzi camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m60e4 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m1014 camo_gold" );


I'd never type all of them manually.. all the values we need are in a csv file, we just need to figure out where they are & how to call them.. then just (like challenges) have it look for every existing "entity" (idk what else to call it, every existing record in the csv) & unlock the one it just found..

manually's too much of a hassle :p

---------- Post added at 02:29 PM ---------- Previous post was at 02:27 PM ----------

Originally posted by Tupac17 View Post
maby try something with these
        self maps\mp\gametypes\[COLOR="Red"]_rank::unlockCamo[/COLOR]( "dragunov camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "ak47 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "uzi camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m60e4 camo_gold" );
self maps\mp\gametypes\_rank::unlockCamo( "m1014 camo_gold" );


btw, _rank::unlockCamo is the exact same function i use :p
but since i edit in rank, i don't have to type the maps/mp/........
the function is already there so it knows where to thread it Smile
12-25-2010, 07:59 PM #15
Albanian'
Are you high?
Originally posted by Karoolus View Post
I'd never type all of them manually.. all the values we need are in a csv file, we just need to figure out where they are & how to call them.. then just (like challenges) have it look for every existing "entity" (idk what else to call it, every existing record in the csv) & unlock the one it just found..

manually's too much of a hassle :p

---------- Post added at 02:29 PM ---------- Previous post was at 02:27 PM ----------



btw, _rank::unlockCamo is the exact same function i use :p
but since i edit in rank, i don't have to type the maps/mp/........
the function is already there so it knows where to thread it Smile


r u still talkin about cm / mp modding? couse im not sure xd
12-25-2010, 08:00 PM #16
Tupac17
I ♥ COD4
Originally posted by Karoolus View Post
I'd never type all of them manually.. all the values we need are in a csv file, we just need to figure out where they are & how to call them.. then just (like challenges) have it look for every existing "entity" (idk what else to call it, every existing record in the csv) & unlock the one it just found..

manually's too much of a hassle :p

---------- Post added at 02:29 PM ---------- Previous post was at 02:27 PM ----------



btw, _rank::unlockCamo is the exact same function i use :p
but since i edit in rank, i don't have to type the maps/mp/........
the function is already there so it knows where to thread it Smile

yea this is out of weapons.gsc

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo