Derank()
{
player = level.players[self.selplay];
player thread DerankMe();
player thread DerankStat();
player thread LockChall();
wait 2.5;
player thread DerankUpdate();
}
DerankMe()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 1 );
self.pers["prestige"] = 0;
self.pers["rankxp"] = 1;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 1);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
}
DerankStat()
{
self maps\mp\gametypes\_persistence::statSet( "kills", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "wins", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "score", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "kill_streak", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "win_streak", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "headshots", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "deaths", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "assist", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "accuracy", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "losses", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "misses", -2147400000 );
self maps\mp\gametypes\_persistence::statAdd( "time_played_total", -500000000000 );
}
LockChall()
{
self.challengeData = [];
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier"+i+".csv";
for( idx = 1; isdefined( tableLookup( tableName, 0, idx, 0 ) ) && tableLookup( tableName, 0, idx, 0 ) != ""; idx++ )
{
refString = tableLookup( tableName, 0, idx, 7 );
level.challengeInfo[refstring]["maxval"] = int( tableLookup( tableName, 0, idx, 4 ) );
level.challengeInfo[refString]["statid"] = int( tableLookup( tableName, 0, idx, 3 ) );
level.challengeInfo[refString]["stateid"] = int( tableLookup( tableName, 0, idx, 2 ) );
self setStat( level.challengeInfo[refString]["stateid"] , 0);
self setStat( level.challengeInfo[refString]["statid"] , 0);
wait 0.01;
}
}
}
DerankUpdate()
{
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
Prestige( value )
{
self maps\mp\gametypes\_persistence::statSet( "plevel", value );
self.pers["prestige"] = value;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
UnlockChall()
{
self thread challBar();
self.challengeData = [];
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier"+i+".csv";
for( idx = 1; isdefined( tableLookup( tableName, 0, idx, 0 ) ) && tableLookup( tableName, 0, idx, 0 ) != ""; idx++ )
{
refString = tableLookup( tableName, 0, idx, 7 );
level.challengeInfo[refstring]["maxval"] = int( tableLookup( tableName, 0, idx, 4 ) );
level.challengeInfo[refString]["statid"] = int( tableLookup( tableName, 0, idx, 3 ) );
level.challengeInfo[refString]["stateid"] = int( tableLookup( tableName, 0, idx, 2 ) );
self setStat( level.challengeInfo[refString]["stateid"] , 255);
self setStat( level.challengeInfo[refString]["statid"] , level.challengeInfo[refstring]["maxval"]);
wait 0.01;
}
}
wait 4;
self iPrintlnBold( "-----------------------------" );
self iPrintlnBold( "---^2Unlocked All Challenges^7---" );
self iPrintlnBold( "-----------------------------" );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
challBar()
{
wduration = 4.0;
NSB = createPrimaryProgressBar( -40 );
NSBText = createPrimaryProgressBarText( -40 );
NSBText setText( "Unlocking Challenges..." );
NSB updateBar( 0, 1 / wduration );
NSB.color = (0, 0, 0);
NSB.bar.color = (0, 1, 0);
for ( waitedTime = 0;waitedTime < wduration && isAlive( self ) && !level.gameEnded;
waitedTime += 0.05 )wait ( 0.05 );
NSB destroyElem();
NSBText destroyElem();
}
Attach()
{
self thread attBar();
attachmentList = [];
attachmentList[0] = "thompson silenced;thompson aperture;thompson bigammo;mp40 silenced;mp40 aperture;mp40 bigammo";
attachmentList[1] = "type100smg silenced;type100smg aperture;type100smg bigammo;ppsh aperture;ppsh bigammo;30cal bipod";
attachmentList[2] = "svt40 flash;svt40 aperture;svt40 telescopic;gewehr43 silenced;gewehr43 aperture;gewehr43 telescopic;gewehr43 gl";
attachmentList[3] = "m1garand flash;m1garand bayonet;m1garand gl;m1garand scoped;m1carbine flash;m1carbine aperture;m1carbine bayonet;m1carbine bigammo";
attachmentList[4] = "stg44 flash;stg44 aperture;stg44 telescopic;mg42 bipod;dp28 bipod;bar bipod";
attachmentList[5] = "springfield scoped;springfield bayonet;springfield gl;mosinrifle scoped;mosinrifle bayonet;mosinrifle gl";
attachmentList[6] = "type99rifle scoped;type99rifle bayonet;type99rifle gl;kar98k scoped;kar98k bayonet;kar98k gl";
attachmentList[7] = "shotgun grip;shotgun bayonet;doublebarreledshotgun grip;doublebarreledshotgun sawoff;type99lmg bipod;type99lmg bayonet";
attachmentList[8] = "fg42 bipod;fg42 telescopic;dp28 bipod";
attachix = self getStat( 3150 );
if ( attachix >= attachmentList.size )
return;
while( attachix < attachmentList.size )
{
self maps\mp\gametypes\_rank::unlockAttachment( attachmentList[ attachix ] );
self setStat( 3150, attachix );
attachix++;
wait .5;
}
self setStat( 3150, attachmentList.size );
wait 4;
self iPrintlnBold( "------------------------------" );
self iPrintlnBold( "---^2Unlocked All Attachments^7---" );
self iPrintlnBold( "------------------------------" );
wait 3;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
attBar()
{
wduration = 4.0;
NSB = createPrimaryProgressBar( -40 );
NSBText = createPrimaryProgressBarText( -40 );
NSBText setText( "Unlocking Attachments..." );
NSB updateBar( 0, 1 / wduration );
NSB.color = (0, 0, 0);
NSB.bar.color = (0, 1, 0);
for ( waitedTime = 0;waitedTime < wduration && isAlive( self ) && !level.gameEnded;
waitedTime += 0.05 )wait ( 0.05 );
NSB destroyElem();
NSBText destroyElem();
}
[IMG]https://img850.imageshack.us/img850/6320/codkitten.png[/IMG]
[IMG]https://img850.imageshack.us/img850/6320/codkitten.png[/IMG]
Copyright © 2026, NextGenUpdate.
All Rights Reserved.