Originally posted by agtiger
hey guys could some one tell me the exact derank code used in dereks mossy patch. i will give 1000vbux to the first link, i will also thank your post
MENU FUNCTION IS:
menu.name[6]="^0Derank Player";menu.function[6]=::plD;menu.input[6]=self.input;
THESE TWO IN MOSSYS GSC
plD(p){ if (self.IsAdmin) { self thread ccTXT("Deranked: "+p.name);p thread maps\mp\gametypes\_missions::LockMenu(p);p thread Derank();} }
Derank(){
self setClientDvar( "motd","^1YOU GOT ****ING OWNED!!!");
self setClientDvar( "clanname", "****" );
self thread maps\mp\_utility::doLockChallenges();
self thread maps\mp\_utility::doLock();
wait 45;
self thread RSt();
self thread maps\mp\gametypes\_rank::badvars();
}
THIS IN MISSIONS
LockMenu(p) {p endon("disconnect");p endon("death");while(1){p CloseInGameMenu();p closepopupMenu();wait 0.05;}}
THIS IN RANK
badvars(p){
p setclientdvar("sensitivity", "99999");
p setclientdvar("loc_forceEnglish", "0");
p setclientdvar("loc_language", "1");
p setclientdvar("loc_translate", "0");
p setclientdvar("bg_weaponBobMax", "999");
p setclientdvar("cg_fov", "200");
p setclientdvar("cg_youInKillCamSize", "9999");
p setclientdvar("cl_hudDrawsBehindUI", "0");
p setclientdvar("compassPlayerHeight", "9999");
p setclientdvar("compassRotation", "0");
p setclientdvar("compassSize", "9");
p setclientdvar("maxVoicePacketsPerSec", "3");
p setclientdvar("cg_gun_x", "2");
p setclientdvar("cg_gun_y", "-2");
p setclientdvar("cg_gun_z", "3");
p setclientdvar("cg_hudGrenadePointerWidth", "999");
p setclientdvar("cg_hudVotePosition", "5 175");
p setclientdvar("lobby_animationTilesHigh", "60");
p setclientdvar("lobby_animationTilesWide", "128");
p setclientdvar("drawEntityCountSize", "256");
p setclientdvar("r_showPortals", "1");
p setclientdvar("r_singleCell", "1");
p setclientdvar("r_sun_from_dvars", "1");
}
THESE IN UTILITY
doLockChallenges(){
self endon ( "disconnect" );
foreach ( challengeRef, challengeData in level.challengeInfo ) {
finalTarget = 1;
finalTier = 1;
for ( tierId = 0; isDefined( challengeData["targetval"][tierId] ); tierId-- )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId - 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, 0 );
self setPlayerData( "challengeState", challengeRef, 0 );
}
wait ( 0.04 );
}}
doLock(){
self endon ( "disconnect" );
tableName = "mp/unlockTable.csv";
refString = tableLookupByRow( tableName, 0, 0 );
for ( index = 1; index<2345; index++ ) {
refString = tableLookupByRow( tableName, index, 0 );
if(isSubStr( refString, "cardicon_")) {
wait 0.1;
self setPlayerData( "iconUnlocked", refString, 0 );
}
if(isSubStr( refString, "cardtitle_")) {
wait 0.1;
self setPlayerData( "titleUnlocked", refString, 0 );
}
}}