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, 04:46 PM #2
Adam™
Climbing up the ladder
I'm not much of a coder, but it won't hurt to have a play around Smile
12-25-2010, 05:40 PM #3
Tupac17
I ♥ COD4
Originally posted by Uck View Post
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

there is a way to do it but no this way...
12-25-2010, 05:44 PM #4
Albanian'
Are you high?
Originally posted by Tupac17 View Post
there is a way to do it but no this way...


how you know ? the statset thing was also in the patch..
12-25-2010, 05:51 PM #5
Karoolus
I'm the W@W Menu Guy !
Originally posted by Uck View Post
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


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 !
12-25-2010, 05:59 PM #6
Tupac17
I ♥ COD4
Originally posted by Uck View Post
how you know ? the statset thing was also in the patch..

You must login or register to view this content.
read the last two pages
12-25-2010, 06:06 PM #7
Albanian'
Are you high?
Originally posted by Tupac17 View Post
You must login or register to view this content.
read the last two pages


dunno, maybe theres still a way to do this..
12-25-2010, 06:11 PM #8
Kif
Kush Friendly
i will see what i can do Happy
12-25-2010, 06:33 PM #9
this will work just like statSet

bind button_back "player_unlockPerk0 _________ ____"
12-25-2010, 06:35 PM #10
Karoolus
I'm the W@W Menu Guy !
Originally posted by Sn1PaXx View Post
this will work just like statSet

bind button_back "player_unlockPerk0 _________ ____"


problem is you'd have to unlock every weapon/attachment/perk/camo/feature individually.. which would take too much code (i think)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo